Skip to content

Fix PHPStan on PHP 8.0 #207

Fix PHPStan on PHP 8.0

Fix PHPStan on PHP 8.0 #207

Triggered via push April 29, 2024 23:35
Status Failure
Total duration 2m 56s
Artifacts 1

build.yml

on: push
Matrix: static-checks
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

22 errors and 13 warnings
Static checks (PHP 8, Symfony ^6.4)
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires symfony/browser-kit ^5.4|^6.4 -> satisfiable by symfony/browser-kit[v6.4.0, v6.4.3, v6.4.7]. - symfony/browser-kit[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 2 - Root composer.json requires symfony/debug-bundle ^5.4|^6.4 -> satisfiable by symfony/debug-bundle[v6.4.0, v6.4.3, v6.4.7]. - symfony/debug-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 3 - Root composer.json requires symfony/dotenv ^5.4|^6.4 -> satisfiable by symfony/dotenv[v6.4.0, ..., v6.4.7]. - symfony/dotenv[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 4 - Root composer.json requires symfony/intl ^5.4|^6.4 -> satisfiable by symfony/intl[v6.4.0, v6.4.2, v6.4.3, v6.4.7]. - symfony/intl[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 5 - Root composer.json requires symfony/runtime ^5.4|^6.4 -> satisfiable by symfony/runtime[v6.4.0, v6.4.3, v6.4.7]. - symfony/runtime[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 6 - Root composer.json requires symfony/web-profiler-bundle ^5.4|^6.4 -> satisfiable by symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7]. - symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 7 - symfony/http-kernel[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. - symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2] require symfony/http-kernel ^4.4 || ^5.0 || ^6.0 -> satisfiable by symfony/http-kernel[v6.4.0, ..., v6.4.7]. - Root composer.json requires symfony/webpack-encore-bundle ^1.16 -> satisfiable by symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2].
Static checks (PHP 8, Symfony ^6.4)
Process completed with exit code 2.
MixedAssignment: src/Checker/DefaultEligibilityChecker.php#L24
src/Checker/DefaultEligibilityChecker.php:24:37: MixedAssignment: Unable to determine the type that $checker is being assigned to (see https://psalm.dev/032)
MixedMethodCall: src/Checker/DefaultEligibilityChecker.php#L25
src/Checker/DefaultEligibilityChecker.php:25:37: MixedMethodCall: Cannot determine the type of $checker when calling method check (see https://psalm.dev/015)
Static checks (PHP 8.3, Symfony ^5.4)
Process completed with exit code 2.
Static checks (PHP 8.3, Symfony ^5.4): src/Fixture/Factory/EuropeanChannelExampleFactory.php#L22
Method FluxSE\SyliusEUVatPlugin\Fixture\Factory\EuropeanChannelExampleFactory::__construct() has parameter $channelRepository with generic interface Sylius\Component\Channel\Repository\ChannelRepositoryInterface but does not specify its types: T
Static checks (PHP 8.3, Symfony ^5.4)
Process completed with exit code 1.
MixedAssignment: src/Checker/DefaultEligibilityChecker.php#L24
src/Checker/DefaultEligibilityChecker.php:24:37: MixedAssignment: Unable to determine the type that $checker is being assigned to (see https://psalm.dev/032)
MixedMethodCall: src/Checker/DefaultEligibilityChecker.php#L25
src/Checker/DefaultEligibilityChecker.php:25:37: MixedMethodCall: Cannot determine the type of $checker when calling method check (see https://psalm.dev/015)
Static checks (PHP 8.3, Symfony ^6.4)
Process completed with exit code 2.
Static checks (PHP 8.3, Symfony ^6.4): src/Fixture/Factory/EuropeanChannelExampleFactory.php#L22
Method FluxSE\SyliusEUVatPlugin\Fixture\Factory\EuropeanChannelExampleFactory::__construct() has parameter $channelRepository with generic interface Sylius\Component\Channel\Repository\ChannelRepositoryInterface but does not specify its types: T
Static checks (PHP 8.3, Symfony ^6.4)
Process completed with exit code 1.
Sylius ~1.13.0, PHP 8, Symfony ^6.4, MySQL 5.7
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires sylius/sylius ~1.13.0 -> satisfiable by sylius/sylius[v1.13.0]. - sylius/sylius v1.13.0 requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 2 - Root composer.json requires symfony/browser-kit ^5.4|^6.4 -> satisfiable by symfony/browser-kit[v6.4.0, v6.4.3, v6.4.7]. - symfony/browser-kit[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 3 - Root composer.json requires symfony/debug-bundle ^5.4|^6.4 -> satisfiable by symfony/debug-bundle[v6.4.0, v6.4.3, v6.4.7]. - symfony/debug-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 4 - Root composer.json requires symfony/dotenv ^5.4|^6.4 -> satisfiable by symfony/dotenv[v6.4.0, ..., v6.4.7]. - symfony/dotenv[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 5 - Root composer.json requires symfony/intl ^5.4|^6.4 -> satisfiable by symfony/intl[v6.4.0, v6.4.2, v6.4.3, v6.4.7]. - symfony/intl[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 6 - Root composer.json requires symfony/runtime ^5.4|^6.4 -> satisfiable by symfony/runtime[v6.4.0, v6.4.3, v6.4.7]. - symfony/runtime[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 7 - Root composer.json requires symfony/web-profiler-bundle ^5.4|^6.4 -> satisfiable by symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7]. - symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 8 - symfony/http-kernel[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. - symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2] require symfony/http-kernel ^4.4 || ^5.0 || ^6.0 -> satisfiable by symfony/http-kernel[v6.4.0, ..., v6.4.7]. - Root composer.json requires symfony/webpack-encore-bundle ^1.16 -> satisfiable by symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2].
Sylius ~1.13.0, PHP 8, Symfony ^6.4, MySQL 5.7
Process completed with exit code 2.
MixedAssignment: src/Checker/DefaultEligibilityChecker.php#L24
src/Checker/DefaultEligibilityChecker.php:24:37: MixedAssignment: Unable to determine the type that $checker is being assigned to (see https://psalm.dev/032)
MixedMethodCall: src/Checker/DefaultEligibilityChecker.php#L25
src/Checker/DefaultEligibilityChecker.php:25:37: MixedMethodCall: Cannot determine the type of $checker when calling method check (see https://psalm.dev/015)
Static checks (PHP 8, Symfony ^5.4)
Process completed with exit code 2.
Sylius ~1.13.0, PHP 8, Symfony ^5.4, MySQL 5.7
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires sylius/sylius ~1.13.0 -> satisfiable by sylius/sylius[v1.13.0]. - sylius/sylius v1.13.0 requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 2 - sylius/sylius v1.13.0 requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement. - sylius/core-bundle v1.13.0 requires php ^8.1 -> your php version (8.0.30) does not satisfy that requirement. - Root composer.json requires sylius/core-bundle ~1.13.0 -> satisfiable by sylius/core-bundle[v1.13.0], sylius/sylius[v1.13.0].
Sylius ~1.13.0, PHP 8, Symfony ^5.4, MySQL 5.7
Process completed with exit code 2.
Sylius ~1.12.0, PHP 8, Symfony ^6.4, MySQL 5.7
Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires symfony/browser-kit ^5.4|^6.4 -> satisfiable by symfony/browser-kit[v6.4.0, v6.4.3, v6.4.7]. - symfony/browser-kit[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 2 - Root composer.json requires symfony/debug-bundle ^5.4|^6.4 -> satisfiable by symfony/debug-bundle[v6.4.0, v6.4.3, v6.4.7]. - symfony/debug-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 3 - Root composer.json requires symfony/dotenv ^5.4|^6.4 -> satisfiable by symfony/dotenv[v6.4.0, ..., v6.4.7]. - symfony/dotenv[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 4 - Root composer.json requires symfony/intl ^5.4|^6.4 -> satisfiable by symfony/intl[v6.4.0, v6.4.2, v6.4.3, v6.4.7]. - symfony/intl[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 5 - Root composer.json requires symfony/runtime ^5.4|^6.4 -> satisfiable by symfony/runtime[v6.4.0, v6.4.3, v6.4.7]. - symfony/runtime[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 6 - Root composer.json requires symfony/web-profiler-bundle ^5.4|^6.4 -> satisfiable by symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7]. - symfony/web-profiler-bundle[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. Problem 7 - symfony/http-kernel[v6.4.0, ..., v6.4.7] require php >=8.1 -> your php version (8.0.30) does not satisfy that requirement. - symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2] require symfony/http-kernel ^4.4 || ^5.0 || ^6.0 -> satisfiable by symfony/http-kernel[v6.4.0, ..., v6.4.7]. - Root composer.json requires symfony/webpack-encore-bundle ^1.16 -> satisfiable by symfony/webpack-encore-bundle[v1.16.0, ..., v1.17.2].
Sylius ~1.12.0, PHP 8, Symfony ^6.4, MySQL 5.7
Process completed with exit code 2.
Sylius ~1.12.0, PHP 8.3, Symfony ^6.4, MySQL 5.7
Process completed with exit code 1.
Static checks (PHP 8, Symfony ^6.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static checks (PHP 8.3, Symfony ^5.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static checks (PHP 8.3, Symfony ^6.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.13.0, PHP 8, Symfony ^6.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Static checks (PHP 8, Symfony ^5.4)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.13.0, PHP 8, Symfony ^5.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.12.0, PHP 8, Symfony ^6.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.12.0, PHP 8.3, Symfony ^6.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.13.0, PHP 8.3, Symfony ^5.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.12.0, PHP 8, Symfony ^5.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Sylius ~1.13.0, PHP 8.3, Symfony ^6.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "Behat logs". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
Sylius ~1.12.0, PHP 8.3, Symfony ^5.4, MySQL 5.7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Artifacts

Produced during runtime
Name Size
Behat logs Expired
0 Bytes