fix: codeigniter in a subdirectory + indexPage results in 404 #12814
test-phpstan.yml
on: pull_request
PHP Static Analysis
1m 20s
Annotations
8 errors
PHP Static Analysis
Process completed with exit code 1.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L198
Method CodeIgniter\HTTP\SiteURIFactoryTest::provideCreateFromStringWithIndexPageSubDirCombinations() return type has no value type specified in iterable type iterable.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L191
Assigning 'http://localhost:8080' directly on offset 'HTTP_HOST' of $_SERVER is discouraged.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L190
Assigning non-falsy-string directly on offset 'SCRIPT_NAME' of $_SERVER is discouraged.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L189
Assigning non-falsy-string directly on offset 'REQUEST_URI' of $_SERVER is discouraged.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L189
Accessing offset 'PATH_INFO' directly on $_SERVER is discouraged.
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L188
Assigning '/controller/method' directly on offset 'PATH_INFO' of $_SERVER is discouraged.
|
PHP Static Analysis:
system/HTTP/SiteURIFactory.php#L140
Strict comparison using !== between string and false will always evaluate to true.
|