Fix phpstan and php-cs issues #333
test-application.yaml
on: pull_request
PHP Lint
34s
Matrix: php
Annotations
12 errors and 15 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 7.2 (postgres, lowest)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- php-cs-fixer/shim[v3.57.0, ..., v3.57.2] require php ^7.4 || ^8.0 -> your php version (7.2.34) does not satisfy that requirement.
- Root composer.json requires php-cs-fixer/shim ^3.57 -> satisfiable by php-cs-fixer/shim[v3.57.0, v3.57.1, v3.57.2].
|
PHP 7.2 (postgres, lowest)
The process '/usr/local/bin/composer' failed with exit code 2
|
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 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 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 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.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/
|