Add an option to allow users to detect "soft deletes" #58
Annotations
15 errors and 2 warnings
Run phpstan:
src/Model/Behavior/TrashBehavior.php#L42
Syntax error, unexpected T_STRING, expecting ';' on line 42
|
Run phpstan
Ignored error pattern #Call to an undefined method Cake\\ORM\\Table::cascadingRestoreTrash\(\)# was not matched in reported errors.
|
Run phpstan
Process completed with exit code 1.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L6
Type ArrayObject is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L9
Type Cake\Database\Expression\BetweenExpression is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L10
Type Cake\Database\Expression\ComparisonExpression is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L11
Type Cake\Database\Expression\IdentifierExpression is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L12
Type Cake\Database\Expression\QueryExpression is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L13
Type Cake\Database\Expression\UnaryExpression is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L14
Type Cake\Database\Query\SelectQuery is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L15
Type Cake\Datasource\EntityInterface is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L16
Type Cake\Event\EventInterface is not used in this file.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L17
Type Cake\I18n\DateTime is not used in this file.
|
Run psalm:
src/Model/Behavior/TrashBehavior.php#L42
src/Model/Behavior/TrashBehavior.php:42:10: ParseError: Syntax error, unexpected T_STRING, expecting ';' on line 42 (see https://psalm.dev/173)
|
Run psalm
Process completed with exit code 2.
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L350
Silencing errors is discouraged; found: @param bool...
|
Run phpcs:
src/Model/Behavior/TrashBehavior.php#L351
Silencing errors is discouraged; found: @return string...
|
Loading