Skip to content

Commit

Permalink
Corona: Fix phpstan warnings for new stricter rules
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstoop authored and SMillerDev committed Nov 11, 2024
1 parent 27880c4 commit 9736e13
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Lunr/Corona/RequestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function parse_cookie()
/**
* Parse php://stdin value.
*
* @return string Parsed php://stdin value
* @return string|false Parsed php://stdin value
*/
public function parse_raw_data()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lunr/Corona/RequestParserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function parse_cookie();
/**
* Parse php://input values into local variable.
*
* @return string Parsed php://input values
* @return string|false Parsed php://input values
*/
public function parse_raw_data();

Expand Down
2 changes: 1 addition & 1 deletion src/Lunr/Corona/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function set_error_info($identifier, $value)
* Set a return code for the given call identifier.
*
* @param string $identifier Call identifier
* @param int $value Return code
* @param mixed $value Return code
*
* @return void
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Lunr/Corona/WebRequestParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public function parse_request()
$request['id'] = str_replace('-', '', uuid_create());
}

if (!is_array($_GET) || empty($_GET))
if (empty($_GET))
{
if (isset($request['controller'], $request['method']) === TRUE)
{
Expand Down Expand Up @@ -209,7 +209,7 @@ public function parse_request()
/**
* Parse super global variables.
*
* @param array $_VAR Reference to a super global variable
* @param mixed $_VAR Reference to a super global variable
* @param bool $reset Whether to reset the super global variable
*
* @return array $var Parsed variable
Expand Down Expand Up @@ -280,7 +280,7 @@ public function parse_get()
/**
* Parse php://input value.
*
* @return string Parsed php://input value
* @return string|false Parsed php://input value
*/
public function parse_raw_data()
{
Expand Down

0 comments on commit 9736e13

Please sign in to comment.