Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Oct 27, 2023
1 parent 2f09b2e commit f4c46ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helpers/RequestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class RequestHelper {
* @return Request
*/
public static function get(): Request {
if ( is_null( static::$request ) ) {
static::$request = Request::createFromGlobals();
if ( is_null( self::$request ) ) {
self::$request = Request::createFromGlobals();

Check warning on line 37 in src/Helpers/RequestHelper.php

View check run for this annotation

Codecov / codecov/patch

src/Helpers/RequestHelper.php#L35-L37

Added lines #L35 - L37 were not covered by tests
}

return static::$request;
return self::$request;

Check warning on line 40 in src/Helpers/RequestHelper.php

View check run for this annotation

Codecov / codecov/patch

src/Helpers/RequestHelper.php#L40

Added line #L40 was not covered by tests
}
}

0 comments on commit f4c46ce

Please sign in to comment.