Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Feb 25, 2024
1 parent 81069d1 commit f59eacd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sabre/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Server extends SabreServer
*/
public function __construct($treeOrNode = null)
{
if (App::environment('testing')) {
if (App::environment('testing') === true) {
$_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] ?? '/';
$_SERVER['REQUEST_METHOD'] = $_SERVER['REQUEST_METHOD'] ?? 'CLI';
}
Expand All @@ -32,7 +32,7 @@ public function __construct($treeOrNode = null)
$sapi = new Sapi();
$this->sapi = $sapi;

if (! App::environment('production')) {
if (App::environment('production') === false) {
$this->debugExceptions = true;
}
}
Expand All @@ -54,7 +54,7 @@ public function setRequest(Request $request)
// Set Url with trailing slash
$this->httpRequest->setUrl($this->fullUrl($request));

if (App::environment('testing')) {
if (App::environment('testing') === true) {
// Testing needs request to be set manually
$this->httpRequest->setMethod($request->method());
$this->httpRequest->setBody($request->getContent(true));
Expand Down

0 comments on commit f59eacd

Please sign in to comment.