fix: support array indexes in getPostGet() and getGetPost()
#15047
test-phpstan.yml
on: pull_request
PHP Static Analysis
1m 5s
Annotations
10 errors
|
PHP Static Analysis:
tests/system/HTTP/ResponseSendTest.php#L143
Comparison operation ">" between int<1, max> and 0 is always true.
|
|
PHP Static Analysis:
tests/system/HTTP/ResponseSendTest.php#L105
Comparison operation ">" between int<1, max> and 0 is always true.
|
|
PHP Static Analysis:
tests/system/HTTP/ResponseSendTest.php#L70
Comparison operation ">" between int<1, max> and 0 is always true.
|
|
PHP Static Analysis:
tests/system/HTTP/IncomingRequestTest.php#L1023
Call to an undefined method CodeIgniter\HTTP\Request::getGetPost().
|
|
PHP Static Analysis:
tests/system/HTTP/IncomingRequestTest.php#L1022
Call to an undefined method CodeIgniter\HTTP\Request::getPostGet().
|
|
PHP Static Analysis:
tests/system/HTTP/IncomingRequestTest.php#L101
Ignored error pattern #^Call to an undefined method CodeIgniter\\HTTP\\Request\:\:getGetPost\(\)\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/HTTP/IncomingRequestTest.php is expected to occur 5 times, but occurred 6 times.
|
|
PHP Static Analysis:
tests/system/HTTP/IncomingRequestTest.php#L100
Ignored error pattern #^Call to an undefined method CodeIgniter\\HTTP\\Request\:\:getPostGet\(\)\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/HTTP/IncomingRequestTest.php is expected to occur 5 times, but occurred 6 times.
|
|
PHP Static Analysis:
tests/system/HTTP/DownloadResponseTest.php#L380
Comparison operation ">" between int<1, max> and 0 is always true.
|
|
PHP Static Analysis:
tests/system/CommonFunctionsSendTest.php#L61
Comparison operation ">" between int<1, max> and 0 is always true.
|
|
PHP Static Analysis:
system/Common.php#L124
Function command() never returns false so it can be removed from the return type.
|