feat: Add expiration date to access token & hmac keys #2228
Annotations
43 errors
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Authenticators/AccessTokens.php#L163
Cannot call method isBefore() on array|float|int<min, -1>|int<1, max>|object|string|true.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L49
Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Entities/User.php is expected to occur 19 times, but occurred 21 times.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L186
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @return with type bool|null is not subtype of native type string|null.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
Parameter $accessToken of method CodeIgniter\Shield\Entities\User::getAccessTokenTimeToExpire() has invalid type CodeIgniter\Shield\Authentication\Traits\AcessToken.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L207
Cannot call method toLocalizedString() on array|bool|float|int|object|string.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L210
Cannot call method humanize() on array|bool|float|int|object|string.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L176
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.0 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L189
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Authenticators/AccessTokens.php#L163
Cannot call method isBefore() on array|float|int<min, -1>|int<1, max>|object|string|true.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L49
Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Entities/User.php is expected to occur 19 times, but occurred 21 times.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L186
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @return with type bool|null is not subtype of native type string|null.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
Parameter $accessToken of method CodeIgniter\Shield\Entities\User::getAccessTokenTimeToExpire() has invalid type CodeIgniter\Shield\Authentication\Traits\AcessToken.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L207
Cannot call method toLocalizedString() on array|bool|float|int|object|string.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L210
Cannot call method humanize() on array|bool|float|int|object|string.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L176
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.3 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L189
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Authenticators/AccessTokens.php#L163
Cannot call method isBefore() on array|float|int<min, -1>|int<1, max>|object|string|true.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L49
Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Entities/User.php is expected to occur 19 times, but occurred 21 times.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L186
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @return with type bool|null is not subtype of native type string|null.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
Parameter $accessToken of method CodeIgniter\Shield\Entities\User::getAccessTokenTimeToExpire() has invalid type CodeIgniter\Shield\Authentication\Traits\AcessToken.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L207
Cannot call method toLocalizedString() on array|bool|float|int|object|string.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L210
Cannot call method humanize() on array|bool|float|int|object|string.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L176
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.1 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L189
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Authenticators/AccessTokens.php#L163
Cannot call method isBefore() on array|float|int<min, -1>|int<1, max>|object|string|true.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L49
Ignored error pattern #^Call to function model with CodeIgniter\\Shield\\Models\\UserIdentityModel\:\:class is discouraged\.$# in path /home/runner/work/shield/shield/src/Entities/User.php is expected to occur 19 times, but occurred 21 times.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L186
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
PHPDoc tag @return with type bool|null is not subtype of native type string|null.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L199
Parameter $accessToken of method CodeIgniter\Shield\Entities\User::getAccessTokenTimeToExpire() has invalid type CodeIgniter\Shield\Authentication\Traits\AcessToken.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L207
Cannot call method toLocalizedString() on array|bool|float|int|object|string.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasAccessTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L210
Cannot call method humanize() on array|bool|float|int|object|string.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L176
Cannot call method isBefore() on array|bool|float|int|object|string.
|
phpstan / PHP 8.2 Static Analysis:
src/Authentication/Traits/HasHmacTokens.php (in context of class CodeIgniter/Shield/Entities/User)#L189
PHPDoc tag @param for parameter $accessToken with type CodeIgniter\Shield\Authentication\Traits\AcessToken is not subtype of native type CodeIgniter\Shield\Entities\AccessToken|null.
|
phpstan / PHP 7.4 Static Analysis
Child process error (exit code 255):
Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting ';' or '{' in /home/runner/work/shield/shield/src/Authentication/Traits/HasAccessTokens.php:180
Stack trace:
#0 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#1 [internal function]: CodeIgniter\Autoloader\Autoloader->loadClassmap()
#2 /home/runner/work/shield/shield/src/Entities/User.php(38): spl_autoload_call()
#3 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(311): include_once('/home/runner/wo...')
#4 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#5 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): CodeIgniter\Autoloader\Autoloader->loadClassmap()
#6 phar:///home/run in /home/runner/work/shield/shield/src/Entities/User.php on line 38
PHP Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting ';' or '{' in /home/runner/work/shield/shield/src/Authentication/Traits/HasAccessTokens.php:180
Stack trace:
#0 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#1 [internal function]: CodeIgniter\Autoloader\Autoloader->loadClassmap()
#2 /home/runner/work/shield/shield/src/Entities/User.php(38): spl_autoload_call()
#3 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(311): include_once('/home/runner/wo...')
#4 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#5 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): CodeIgniter\Autoloader\Autoloader->loadClassmap()
#6 phar:///home/run in /home/runner/work/shield/shield/src/Entities/User.php on line 38
while running parallel worker
|
phpstan / PHP 7.4 Static Analysis
Child process error (exit code 255):
Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting ';' or '{' in /home/runner/work/shield/shield/src/Authentication/Traits/HasAccessTokens.php:180
Stack trace:
#0 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 /home/runner/work/shield/shield/src/Entities/User.php(38): spl_autoload_call()
#3 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(311): include_once('/home/runner/wo...')
#4 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#5 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): CodeIgniter\Autoloader\Autoloader->loadClassmap()
#6 phar:///home/runner/work/shiel in /home/runner/work/shield/shield/src/Entities/User.php on line 38
PHP Fatal error: During class fetch: Uncaught ParseError: syntax error, unexpected '|', expecting ';' or '{' in /home/runner/work/shield/shield/src/Authentication/Traits/HasAccessTokens.php:180
Stack trace:
#0 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#2 /home/runner/work/shield/shield/src/Entities/User.php(38): spl_autoload_call()
#3 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(311): include_once('/home/runner/wo...')
#4 /home/runner/work/shield/shield/vendor/codeigniter4/framework/system/Autoloader/Autoloader.php(253): CodeIgniter\Autoloader\Autoloader->includeFile()
#5 phar:///home/runner/work/shield/shield/vendor/phpstan/phpstan/phpstan.phar/src/Reflection/BetterReflection/SourceLocator/AutoloadFunctionsSourceLocator.php(41): CodeIgniter\Autoloader\Autoloader->loadClassmap()
#6 phar:///home/runner/work/shiel in /home/runner/work/shield/shield/src/Entities/User.php on line 38
while running parallel worker
|
phpstan / PHP 7.4 Static Analysis
Process completed with exit code 1.
|