fix: codeigniter in a subdirectory + indexPage results in 404 #12803
test-phpstan.yml
on: pull_request
PHP Static Analysis
1m 19s
Annotations
8 errors
|
PHP Static Analysis
Process completed with exit code 1.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L207
Assigning 'http://localhost:8080' directly on offset 'HTTP_HOST' of $_SERVER is discouraged.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L206
Assigning '/'|'/index.php'|'/subdir/'|'/subdir/index.php'|'/subdir/subsubdir/'|'/subdir/subsubdir/index.php' directly on offset 'SCRIPT_NAME' of $_SERVER is discouraged.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L205
Assigning '//woot'|'/index.php/woot'|'/subdir//woot'|'/subdir/index.php/woot'|'/subdir/subsubdir//woot'|'/subdir/subsubdir/index.php/woot' directly on offset 'REQUEST_URI' of $_SERVER is discouraged.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L205
Accessing offset 'PATH_INFO' directly on $_SERVER is discouraged.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L204
Assigning '/woot' directly on offset 'PATH_INFO' of $_SERVER is discouraged.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L175
Method CodeIgniter\HTTP\SiteURIFactoryTest::testCreateFromStringWithIndexPageSubDirCombinations() has no return type specified.
|
|
PHP Static Analysis:
tests/system/HTTP/SiteURIFactoryTest.php#L52
Ignored error pattern #^Assigning '/woot' directly on offset 'PATH_INFO' of \$_SERVER is discouraged\.$# in path /home/runner/work/CodeIgniter4/CodeIgniter4/tests/system/HTTP/SiteURIFactoryTest.php is expected to occur 2 times, but occurred 3 times.
|