Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ilvalerione committed Dec 10, 2024
2 parents 4b1fd4b + a492f18 commit 51cc616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Partials/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Request extends Arrayable
*/
public function __construct()
{
$this->method = $_SERVER['REQUEST_METHOD'];
$this->method = $_SERVER['REQUEST_METHOD']??null;

$this->version = isset($_SERVER['SERVER_PROTOCOL'])
? \substr($_SERVER['SERVER_PROTOCOL'], \strpos($_SERVER['SERVER_PROTOCOL'], '/'))
Expand Down

0 comments on commit 51cc616

Please sign in to comment.