fix: resolved CakePHP deprecations in behavior and test suite #77
Annotations
13 errors and 1 warning
|
Run psalm
Process completed with exit code 2.
|
|
Run psalm:
src/TrashPlugin.php#L11
src/TrashPlugin.php:11:7: ClassMustBeFinal: Class Muffin\Trash\TrashPlugin is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L331
src/Model/Behavior/TrashBehavior.php:331:63: PossiblyInvalidArgument: Argument 1 of Muffin\Trash\Model\Behavior\TrashBehavior::cascadingRestoreTrash expects Cake\Datasource\EntityInterface|null, but possibly different type Cake\Datasource\EntityInterface|array<array-key, mixed> provided (see https://psalm.dev/092)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L331
src/Model/Behavior/TrashBehavior.php:331:29: RiskyTruthyFalsyComparison: Operand of type Cake\Datasource\EntityInterface|bool|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L318
src/Model/Behavior/TrashBehavior.php:318:36: PossiblyInvalidOperand: Cannot perform a numeric operation with a non-numeric type bool (see https://psalm.dev/163)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L318
src/Model/Behavior/TrashBehavior.php:318:25: PossiblyInvalidOperand: Cannot perform a numeric operation with a non-numeric type Cake\Datasource\EntityInterface (see https://psalm.dev/163)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L66
src/Model/Behavior/TrashBehavior.php:66:5: MissingOverrideAttribute: Method Muffin\Trash\Model\Behavior\TrashBehavior::implementedevents should have the "Override" attribute (see https://psalm.dev/358)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L53
src/Model/Behavior/TrashBehavior.php:53:5: MissingOverrideAttribute: Method Muffin\Trash\Model\Behavior\TrashBehavior::initialize should have the "Override" attribute (see https://psalm.dev/358)
|
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L24
src/Model/Behavior/TrashBehavior.php:24:7: ClassMustBeFinal: Class Muffin\Trash\Model\Behavior\TrashBehavior is never extended and is not part of the public API, and thus must be made final. (see https://psalm.dev/361)
|
|
Run phpstan
Process completed with exit code 1.
|
|
Run phpstan
Ignored error pattern #Call to an undefined method Cake\\ORM\\Table::cascadingRestoreTrash\(\)# was not matched in reported errors.
|
|
Run phpstan:
src/Model/Behavior/TrashBehavior.php#L331
Parameter #1 $entity of method Muffin\Trash\Model\Behavior\TrashBehavior::cascadingRestoreTrash() expects Cake\Datasource\EntityInterface|null, array|Cake\Datasource\EntityInterface given.
|
|
Run phpcs
Process completed with exit code 2.
|
|
Complete job
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
background
wait
wait-all
cancel
Loading