chore: fix PHPStan, Rector and tests #2346
phpstan.yml
on: pull_request
phpstan
/
PHP 8.1 Static Analysis
25s
Annotations
10 errors
|
phpstan / PHP 8.1 Static Analysis
Process completed with exit code 1.
|
|
phpstan / PHP 8.1 Static Analysis:
tests/Authentication/Authenticators/SessionAuthenticatorTest.php#L108
Call to an undefined method CodeIgniter\Superglobals::setCookie().
|
|
phpstan / PHP 8.1 Static Analysis:
tests/Authentication/Authenticators/SessionAuthenticatorTest.php#L0
Ignored error pattern "Call to method setCookie() of internal class CodeIgniter\Superglobals from outside its root namespace CodeIgniter." (method.internalClass) in path /home/runner/work/shield/shield/tests/Authentication/Authenticators/SessionAuthenticatorTest.php was not matched in reported errors.
|
|
phpstan / PHP 8.1 Static Analysis:
src/Models/UserModel.php#L427
Parameter #1 $id (CodeIgniter\Database\RawSql|int|list<int|string>|string|null) of method CodeIgniter\Shield\Models\UserModel::update() should be contravariant with parameter $id (array|int|string|null) of method CodeIgniter\Model::update()
|
|
phpstan / PHP 8.1 Static Analysis:
src/Models/UserIdentityModel.php#L578
Parameter #1 $id (CodeIgniter\Database\RawSql|int|list<int|string>|string|null) of method CodeIgniter\Shield\Models\UserIdentityModel::update() should be contravariant with parameter $id (array|int|string|null) of method CodeIgniter\Model::update()
|
|
phpstan / PHP 8.1 Static Analysis:
src/Models/UserIdentityModel.php#L165
Call to deprecated function random_string():
The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure.
|
|
phpstan / PHP 8.1 Static Analysis:
src/Models/TokenLoginModel.php#L36
Call to deprecated function random_string():
The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure.
|
|
phpstan / PHP 8.1 Static Analysis:
src/Controllers/MagicLinkController.php#L107
Call to deprecated function random_string():
The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure.
|
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Actions/EmailActivator.php#L146
Call to deprecated function random_string():
The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure.
|
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Actions/Email2FA.php#L154
Call to deprecated function random_string():
The type 'basic', 'md5', and 'sha1' are deprecated. They are not cryptographically secure.
|