Solves issue #607 #113
Annotations
9 errors
Run phpstan:
src/File/Path/Basepath/DefaultTrait.php (in context of class Josegonzalez/Upload/File/Path/DefaultProcessor)#L47
Parameter #1 $field of method Cake\Datasource\EntityInterface::get() expects string, array<int, string>|string given.
|
Run phpstan:
src/File/Path/DefaultProcessor.php#L1
Ignored error pattern #^Parameter \#1 \$field of method Cake\\Datasource\\EntityInterface\:\:get\(\) expects string, array\<string\>\|string given\.$# in path /home/runner/work/cakephp-upload/cakephp-upload/src/File/Path/DefaultProcessor.php was not matched in reported errors.
|
Run phpstan:
src/Model/Behavior/UploadBehavior.php#L107
Parameter #2 $excludedFields of method Cake\ORM\Query\SelectQuery<array|Cake\Datasource\EntityInterface>::selectAllExcept() expects array<int, string>, array<int, int|string> given.
|
Run phpstan
Process completed with exit code 1.
|
Run phpcs:
src/Model/Behavior/UploadBehavior.php#L99
Class name \Cake\Event\EventInterface in @param should be referenced via a fully qualified name.
|
Run phpcs:
src/Model/Behavior/UploadBehavior.php#L100
Class name \Cake\ORM\Query\SelectQuery in @param should be referenced via a fully qualified name.
|
Run phpcs:
src/Model/Behavior/UploadBehavior.php#L101
Class name \ArrayObject in @param should be referenced via a fully qualified name.
|
Run phpcs:
src/Model/Behavior/UploadBehavior.php#L105
Method \Josegonzalez\Upload\Model\Behavior\UploadBehavior::beforeFind() does not have native return type hint for its return value but it should be possible to add it based on @return annotation "void".
|
Run phpcs
Process completed with exit code 1.
|
Loading