Skip to content

Add stronger type checks on user input (#378) #323

Add stronger type checks on user input (#378)

Add stronger type checks on user input (#378) #323

Triggered via push April 30, 2024 08:46
Status Failure
Total duration 1m 31s
Artifacts
Matrix: php
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 15 warnings
PHP Lint: Admin/FormAdmin.php#L188
Method Sulu\Bundle\FormBundle\Admin\FormAdmin::getSecurityContexts() should return array<string, array<string, array<string, array<string>>>> but returns array<string, array<string, array<int|string, array<int, string>>>>.
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: Controller/DynamicController.php#L120
Parameter #6 $limit of class Sulu\Component\Rest\ListBuilder\ListRepresentation constructor expects int|null, mixed given.
PHP Lint: Controller/FormWebsiteController.php#L81
Parameter #1 $type of method Symfony\Component\Form\FormFactory::create() expects class-string<TFormType of Symfony\Component\Form\FormTypeInterface<array{}>>, string given.
PHP Lint: Controller/FormWebsiteController.php#L114
Parameter #1 $type of method Symfony\Component\Form\FormFactory::create() expects class-string<TFormType of Symfony\Component\Form\FormTypeInterface<null>>, string given.
PHP Lint: Dynamic/Types/ChoiceTrait.php (in context of class Sulu/Bundle/FormBundle/Dynamic/Types/CheckboxMultipleType)#L42
Ignored error pattern #^Cannot access offset 'placeholder' on mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/CheckboxMultipleType.php is expected to occur 3 times, but occurred only 2 times.
PHP Lint: Dynamic/Types/ChoiceTrait.php (in context of class Sulu/Bundle/FormBundle/Dynamic/Types/DropdownMultiple)#L42
Ignored error pattern #^Cannot access offset 'placeholder' on mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/DropdownMultiple.php is expected to occur 3 times, but occurred only 2 times.
PHP Lint: Dynamic/Types/ChoiceTrait.php (in context of class Sulu/Bundle/FormBundle/Dynamic/Types/DropdownType)#L42
Ignored error pattern #^Cannot access offset 'placeholder' on mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/DropdownType.php is expected to occur 3 times, but occurred only 2 times.
PHP Lint: Dynamic/Types/ChoiceTrait.php (in context of class Sulu/Bundle/FormBundle/Dynamic/Types/RadioButtonsType)#L42
Ignored error pattern #^Cannot access offset 'placeholder' on mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/RadioButtonsType.php is expected to occur 3 times, but occurred only 2 times.
PHP Lint: Dynamic/Types/CountryType.php#L37
Ignored error pattern #^Cannot access offset 'placeholder' on mixed\.$# in path /home/runner/work/SuluFormBundle/SuluFormBundle/Dynamic/Types/CountryType.php is expected to occur 3 times, but occurred only 2 times.
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.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/
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/