Update CI config #221
Annotations
17 errors
Run phpstan:
src/Listener/ViewListener.php#L1
Ignored error pattern #^Parameter \#1 \$field of method CrudView\\Listener\\ViewListener\:\:_deriveFieldFromContext\(\) expects string, array\<string\>\|string\|null given\.$# in path /home/runner/work/crud-view/crud-view/src/Listener/ViewListener.php was not matched in reported errors.
|
Run phpstan:
src/Listener/ViewListener.php#L595
Parameter #1 $field of method CrudView\Listener\ViewListener::_deriveFieldFromContext() expects string, array<int, string>|string|null given.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L1
Ignored error pattern #^Binary operation "\+" between string and non\-empty\-array results in an error\.$# in path /home/runner/work/crud-view/crud-view/src/View/Widget/DateTimeWidget.php was not matched in reported errors.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L1
Ignored error pattern #^Offset 'name' does not exist on array\<string\>\|string\|null\.$# in path /home/runner/work/crud-view/crud-view/src/View/Widget/DateTimeWidget.php was not matched in reported errors.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L1
Ignored error pattern #^Offset 'templateVars' does not exist on array\<string\>\|string\|null\.$# in path /home/runner/work/crud-view/crud-view/src/View/Widget/DateTimeWidget.php was not matched in reported errors.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L1
Ignored error pattern #^Parameter \#1 \$options of method Cake\\View\\StringTemplate\:\:formatAttributes\(\) expects array\<string, mixed\>\|null, array\<string\>\|string\|null given\.$# in path /home/runner/work/crud-view/crud-view/src/View/Widget/DateTimeWidget.php was not matched in reported errors.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L129
Offset 'class' on array<int, string>|string|null in isset() does not exist.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L133
Offset 'datetimePicker' on array<int, string>|string|null in isset() does not exist.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L147
Offset 'name' does not exist on array<int, string>|string|null.
|
Run phpstan:
src/View/Widget/DateTimeWidget.php#L149
Offset 'templateVars' does not exist on array<int, string>|string|null.
|
Run psalm:
src/View/Cell/TablesListCell.php#L26
src/View/Cell/TablesListCell.php:26:13: RedundantFunctionCall: The call to ksort is unnecessary, list<string> is already a list (see https://psalm.dev/280)
|
Run psalm:
src/View/Widget/DateTimeWidget.php#L129
src/View/Widget/DateTimeWidget.php:129:23: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'class', expecting int<0, max> (see https://psalm.dev/115)
|
Run psalm:
src/View/Widget/DateTimeWidget.php#L133
src/View/Widget/DateTimeWidget.php:133:23: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'datetimePicker', expecting int<0, max> (see https://psalm.dev/115)
|
Run psalm:
src/View/Widget/DateTimeWidget.php#L147
src/View/Widget/DateTimeWidget.php:147:23: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'name', expecting int<0, max> (see https://psalm.dev/115)
|
Run psalm:
src/View/Widget/DateTimeWidget.php#L149
src/View/Widget/DateTimeWidget.php:149:31: InvalidArrayOffset: Cannot access value on variable $data using offset value of 'templateVars', expecting int<0, max> (see https://psalm.dev/115)
|
Run psalm:
src/View/Widget/DateTimeWidget.php#L151
src/View/Widget/DateTimeWidget.php:151:17: InvalidArgument: Argument 1 of Cake\View\StringTemplate::formatAttributes expects array<string, mixed>|null, but list<string>|null|string provided (see https://psalm.dev/004)
|
Run psalm
Process completed with exit code 2.
|
Loading