Skip to content

fix: codeigniter in a subdirectory + indexPage results in 404 #12814

fix: codeigniter in a subdirectory + indexPage results in 404

fix: codeigniter in a subdirectory + indexPage results in 404 #12814

Triggered via pull request June 26, 2025 19:45
Status Failure
Total duration 1m 26s
Artifacts

test-phpstan.yml

on: pull_request
PHP Static Analysis
1m 20s
PHP Static Analysis
Fit to window
Zoom out
Zoom in

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.