Skip to content

Fix ValidatorInterface error after upgrading to CodeIgniter 4.5 #93

Fix ValidatorInterface error after upgrading to CodeIgniter 4.5

Fix ValidatorInterface error after upgrading to CodeIgniter 4.5 #93

Re-run triggered April 27, 2024 18:11
Status Failure
Total duration 1m 2s
Artifacts

phpstan.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 3 warnings
PHP 8.1 Static Analysis: src/Authentication/AuthenticationBase.php#L227
If condition is always true.
PHP 8.1 Static Analysis: src/Authentication/AuthenticationBase.php#L274
If condition is always true.
PHP 8.1 Static Analysis: src/Authentication/AuthenticationBase.php#L287
Parameter #3 $expire of function set_cookie expects int, string given.
PHP 8.1 Static Analysis: src/Authentication/LocalAuthenticator.php#L70
Instantiation of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 8.1 Static Analysis: src/Authorization/FlatAuthorization.php#L341
Call to function in_array() with arguments int, array<int, string> and true will always evaluate to false.
PHP 8.1 Static Analysis: src/Commands/Publish.php#L45
PHPDoc type array of property Myth\Auth\Commands\Publish::$arguments is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$arguments.
PHP 8.1 Static Analysis: src/Commands/Publish.php#L52
PHPDoc type array of property Myth\Auth\Commands\Publish::$options is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$options.
PHP 8.1 Static Analysis: src/Database/Migrations/2017-11-20-223112_create_auth_tables.php#L154
No error to ignore is reported on line 154.
PHP 8.1 Static Analysis: tests/_support/AuthTestCase.php#L40
PHPDoc type string of property Tests\Support\AuthTestCase::$seed is not covariant with PHPDoc type array<int, class-string<CodeIgniter\Database\Seeder>>|class-string<CodeIgniter\Database\Seeder> of overridden property CodeIgniter\Test\CIUnitTestCase::$seed.
PHP 8.1 Static Analysis: tests/authentication/LocalAuthTest.php#L116
Fetching class constant class of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 8.0 Static Analysis: src/Authentication/AuthenticationBase.php#L227
If condition is always true.
PHP 8.0 Static Analysis: src/Authentication/AuthenticationBase.php#L274
If condition is always true.
PHP 8.0 Static Analysis: src/Authentication/LocalAuthenticator.php#L70
Instantiation of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 8.0 Static Analysis: src/Authorization/FlatAuthorization.php#L341
Call to function in_array() with arguments int, array<int, string> and true will always evaluate to false.
PHP 8.0 Static Analysis: src/Commands/Publish.php#L45
PHPDoc type array of property Myth\Auth\Commands\Publish::$arguments is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$arguments.
PHP 8.0 Static Analysis: src/Commands/Publish.php#L52
PHPDoc type array of property Myth\Auth\Commands\Publish::$options is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$options.
PHP 8.0 Static Analysis: src/Database/Migrations/2017-11-20-223112_create_auth_tables.php#L154
No error to ignore is reported on line 154.
PHP 8.0 Static Analysis: tests/_support/AuthTestCase.php#L40
PHPDoc type string of property Tests\Support\AuthTestCase::$seed is not covariant with PHPDoc type array<int, class-string<CodeIgniter\Database\Seeder>>|class-string<CodeIgniter\Database\Seeder> of overridden property CodeIgniter\Test\CIUnitTestCase::$seed.
PHP 8.0 Static Analysis: tests/authentication/LocalAuthTest.php#L116
Fetching class constant class of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 8.0 Static Analysis: tests/controllers/LoginTest.php#L55
No error to ignore is reported on line 55.
PHP 7.4 Static Analysis: src/Authentication/AuthenticationBase.php#L227
If condition is always true.
PHP 7.4 Static Analysis: src/Authentication/AuthenticationBase.php#L274
If condition is always true.
PHP 7.4 Static Analysis: src/Authentication/LocalAuthenticator.php#L70
Instantiation of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 7.4 Static Analysis: src/Authorization/FlatAuthorization.php#L341
Call to function in_array() with arguments int, array<int, string> and true will always evaluate to false.
PHP 7.4 Static Analysis: src/Commands/Publish.php#L45
PHPDoc type array of property Myth\Auth\Commands\Publish::$arguments is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$arguments.
PHP 7.4 Static Analysis: src/Commands/Publish.php#L52
PHPDoc type array of property Myth\Auth\Commands\Publish::$options is not covariant with PHPDoc type array<string, string> of overridden property CodeIgniter\CLI\BaseCommand::$options.
PHP 7.4 Static Analysis: src/Database/Migrations/2017-11-20-223112_create_auth_tables.php#L154
No error to ignore is reported on line 154.
PHP 7.4 Static Analysis: tests/_support/AuthTestCase.php#L40
PHPDoc type string of property Tests\Support\AuthTestCase::$seed is not covariant with PHPDoc type array<int, class-string<CodeIgniter\Database\Seeder>>|class-string<CodeIgniter\Database\Seeder> of overridden property CodeIgniter\Test\CIUnitTestCase::$seed.
PHP 7.4 Static Analysis: tests/authentication/LocalAuthTest.php#L116
Fetching class constant class of deprecated class CodeIgniter\Router\Exceptions\RedirectException: Use \CodeIgniter\HTTP\Exceptions\RedirectException instead
PHP 7.4 Static Analysis: tests/controllers/LoginTest.php#L55
No error to ignore is reported on line 55.
PHP 8.1 Static Analysis
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.0 Static Analysis
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 7.4 Static Analysis
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/