Skip to content

Fix phpstan and php-cs issues #334

Fix phpstan and php-cs issues

Fix phpstan and php-cs issues #334

Triggered via pull request May 27, 2024 15:44
Status Failure
Total duration 1m 39s
Artifacts

test-application.yaml

on: pull_request
Matrix: php
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 27 warnings
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Method Sulu\\Bundle\\FormBundle\\Controller\\DynamicController\:\:getLocale\(\) should return string\|null but returns mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#2 \$locale of method Sulu\\Bundle\\FormBundle\\ListBuilder\\DynamicListFactory\:\:build\(\) expects string, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#2 \$sort of method Sulu\\Bundle\\FormBundle\\Repository\\DynamicRepository\:\:findByFilters\(\) expects array\<string\>, array\<int\|string, mixed\> given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#2 \$string of function explode expects string, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#3 \$limit of method Sulu\\Bundle\\FormBundle\\Repository\\DynamicRepository\:\:findByFilters\(\) expects int\|null, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#3 \$route of class Sulu\\Component\\Rest\\ListBuilder\\ListRepresentation constructor expects string, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#5 \$page of class Sulu\\Component\\Rest\\ListBuilder\\ListRepresentation constructor expects int, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: Controller/DynamicController.php#L1
Ignored error pattern #^Parameter \#6 \$limit of class Sulu\\Component\\Rest\\ListBuilder\\ListRepresentation constructor expects int, mixed given\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Controller/DynamicController.php was not matched in reported errors.
PHP Lint: DependencyInjection/SuluFormExtension.php#L1
Ignored error pattern #^Call to function array_key_exists\(\) with 'SuluArticleBundle' and array\{FrameworkBundle\: string, TwigBundle\: string, SuluCoreBundle\: string, DoctrineBundle\: string, DoctrinePHPCRBundle\: string, PhpcrMigrationsBundle\: string, StofDoctrineExtensionsBundle\: string, JMSSerializerBundle\: string, \.\.\.\} will always evaluate to false\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/DependencyInjection/SuluFormExtension.php was not matched in reported errors.
PHP Lint: Dynamic/Types/AttachmentType.php#L1
Ignored error pattern #^Cannot call method getDefaultValue\(\) on Sulu\\Bundle\\FormBundle\\Entity\\FormFieldTranslation\|null\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/AttachmentType.php was not matched in reported errors.
PHP Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP Lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.3 (mysql, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.3 (mysql, highest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.3 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 7.4 (mysql, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.4 (mysql, highest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 7.4 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 7.4 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 7.4 (mysql, highest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.1 (mysql, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1 (mysql, highest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.1 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.1 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.1 (mysql, highest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.2 (mysql, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.2 (mysql, highest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.2 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 7.2 (postgres, lowest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 7.2 (postgres, lowest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 7.2 (postgres, lowest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.0 (mysql, highest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.0 (mysql, highest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHP 8.0 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.0 (mysql, highest)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHP 8.0 (mysql, highest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/