Merge pull request #112 from hsoberon/10.x-cake5.0 #33
Annotations
16 errors and 3 warnings
Run phpstan:
src/Model/Entity/JwtRefreshToken.php#L50
PHPDoc type array<string> of property CakeDC\Api\Model\Entity\JwtRefreshToken::$_hidden is not covariant with PHPDoc type array<int, string> of overridden property Cake\ORM\Entity::$_hidden.
|
Run phpstan:
src/Routing/ApiRouter.php#L146
PHPDoc type array<string> of property CakeDC\Api\Routing\ApiRouter::$_defaultExtensions is not covariant with PHPDoc type array<int, string> of overridden property Cake\Routing\Router::$_defaultExtensions.
|
Run phpstan:
src/TestSuite/IntegrationTestCase.php#L36
PHPDoc type array<string> of property CakeDC\Api\TestSuite\IntegrationTestCase::$fixtures is not covariant with PHPDoc type array<int, string> of overridden property Cake\TestSuite\TestCase::$fixtures.
|
Run phpstan:
src/TestSuite/TestCase.php#L29
PHPDoc type array<string> of property CakeDC\Api\TestSuite\TestCase::$fixtures is not covariant with PHPDoc type array<int, string> of overridden property Cake\TestSuite\TestCase::$fixtures.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
src/Controller/AppController.php#L26
src/Controller/AppController.php:26:1: InvalidDocblock: Unrecognised annotation @psalm-suppress: (see https://psalm.dev/008)
|
Run psalm:
src/Controller/AppController.php#L26
src/Controller/AppController.php:26:7: InvalidDocblock: Unrecognised annotation @psalm-suppress: in docblock for CakeDC\Api\Controller\AppController (see https://psalm.dev/008)
|
Run psalm:
src/Controller/AppController.php#L26
src/Controller/AppController.php:26:29: UndefinedClass: Class, interface or enum named App\Controller\AppController does not exist (see https://psalm.dev/019)
|
Run psalm:
src/Exception/MethodNotAllowedException.php#L33
src/Exception/MethodNotAllowedException.php:33:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Exception/ServiceException.php#L33
src/Exception/ServiceException.php:33:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Exception/UnauthenticatedException.php#L33
src/Exception/UnauthenticatedException.php:33:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Exception/UnauthorizedException.php#L32
src/Exception/UnauthorizedException.php:32:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run psalm:
src/Middleware/UnauthorizedHandler/ApiExceptionHandler.php#L37
src/Middleware/UnauthorizedHandler/ApiExceptionHandler.php:37:67: UndefinedFunction: Function CakeDC\Api\Middleware\UnauthorizedHandler\__ does not exist (see https://psalm.dev/021)
|
Run psalm:
src/Model/Entity/JwtRefreshToken.php#L50
src/Model/Entity/JwtRefreshToken.php:50:21: NonInvariantDocblockPropertyType: Property CakeDC\Api\Model\Entity\JwtRefreshToken::$_hidden has type array<array-key, string>, not invariant with Cake\Datasource\EntityTrait::$_hidden of type list<string> (see https://psalm.dev/267)
|
Run psalm:
src/Model/Table/JwtRefreshTokensTable.php#L31
src/Model/Table/JwtRefreshTokensTable.php:31:7: MethodSignatureMismatch: Method CakeDC\Api\Model\Table\JwtRefreshTokensTable::get has fewer parameters than parent method Cake\ORM\Table::get (see https://psalm.dev/042)
|
Run PHP CodeSniffer
Process completed with exit code 3.
|
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v1. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
|
Get composer cache directory
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/
|
Get date part for cache key
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/
|
Loading