Skip to content

Phpstan

Phpstan #9

Triggered via schedule October 7, 2024 08:22
Status Failure
Total duration 39s
Artifacts

phpstan.yml

on: schedule
Phpstan  /  Phpstan (8.1)
28s
Phpstan / Phpstan (8.1)
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Phpstan / Phpstan (8.1): src/AggregationFunction/FunctionSum.php#L72
Property Ublaboo\DataGrid\AggregationFunction\FunctionSum::$result (int) does not accept bool|float|int|string|null.
Phpstan / Phpstan (8.1): src/DataGrid.php#L1506
Cannot access offset 'submit' on Nette\ComponentModel\IComponent.
Phpstan / Phpstan (8.1): src/DataGrid.php#L1524
Cannot access offset 'submit' on Nette\ComponentModel\IComponent.
Phpstan / Phpstan (8.1): src/DataGrid.php#L1556
Parameter #1 $id of method Ublaboo\DataGrid\DataGrid::redrawItem() expects int|string, array|Nette\Http\FileUpload|string|null given.
Phpstan / Phpstan (8.1): src/DataGrid.php#L1569
Cannot access offset 'submit' on Nette\ComponentModel\IComponent.
Phpstan / Phpstan (8.1): src/DataSource/DoctrineDataSource.php#L1
Ignored error pattern #^Parameter \#1 \$x of method Doctrine\\ORM\\Query\\Expr\:\:like\(\) expects string, Doctrine\\ORM\\Query\\Expr\\Func given\.$# in path /home/runner/work/asua-datagrid/asua-datagrid/src/DataSource/DoctrineDataSource.php was not matched in reported errors.
Phpstan / Phpstan (8.1): src/Filter/SubmitButton.php#L48
Parameter #1 $caption (object|string) of method Ublaboo\DataGrid\Filter\SubmitButton::getControl() should be contravariant with parameter $caption (string|Stringable|null) of method Nette\Forms\Controls\Button::getControl()
Phpstan / Phpstan (8.1): src/Filter/SubmitButton.php#L50
Parameter #1 $caption of method Nette\Forms\Controls\Button::getControl() expects string|Stringable|null, object|string|null given.
Phpstan / Phpstan (8.1): src/GroupAction/GroupActionCollection.php#L187
Parameter #1 $array of function array_keys expects array, array|Nette\Http\FileUpload|string|null given.
Phpstan / Phpstan (8.1): src/Utils/ItemDetailForm.php#L82
Result of || is always false.
Phpstan / Phpstan (8.1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/