Fix PHPStan #107
Annotations
9 errors and 2 warnings
Run tests:
src/Command/IndexCommand.php#L48
src/Command/IndexCommand.php:48:18: UnnecessaryVarAnnotation: The @var array<array-key, Sylius\Component\Core\Model\ChannelInterface> annotation for $channels is unnecessary (see https://psalm.dev/212)
|
Run tests:
src/EventSubscriber/ProductEventSubscriber.php#L52
src/EventSubscriber/ProductEventSubscriber.php:52:22: UnnecessaryVarAnnotation: The @var array<array-key, Sylius\Component\Core\Model\ChannelInterface> annotation for $allChannels is unnecessary (see https://psalm.dev/212)
|
Run tests:
src/EventSubscriber/ProductEventSubscriber.php#L92
src/EventSubscriber/ProductEventSubscriber.php:92:22: UnnecessaryVarAnnotation: The @var array<array-key, Sylius\Component\Core\Model\ChannelInterface> annotation for $allChannels is unnecessary (see https://psalm.dev/212)
|
Run tests:
src/EventSubscriber/ProductVariantSubscriber.php#L57
src/EventSubscriber/ProductVariantSubscriber.php:57:22: UnnecessaryVarAnnotation: The @var array<array-key, Sylius\Component\Core\Model\ChannelInterface> annotation for $allChannels is unnecessary (see https://psalm.dev/212)
|
Run tests:
src/EventSubscriber/ProductVariantSubscriber.php#L101
src/EventSubscriber/ProductVariantSubscriber.php:101:22: UnnecessaryVarAnnotation: The @var array<array-key, Sylius\Component\Core\Model\ChannelInterface> annotation for $allChannels is unnecessary (see https://psalm.dev/212)
|
Run tests:
src/Twig/FilterExtension.php#L16
src/Twig/FilterExtension.php:16:48: InvalidArgument: Argument 2 of Twig\TwigFilter::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
Run tests:
src/Twig/FilterExtension.php#L23
src/Twig/FilterExtension.php:23:80: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
Run tests:
src/Twig/SearchExtension.php#L15
src/Twig/SearchExtension.php:15:49: InvalidArgument: Argument 2 of Twig\TwigFunction::__construct expects a public static callable, but a non-static callable provided (see https://psalm.dev/004)
|
Run tests
Process completed with exit code 2.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@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/.
|
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/
|
Loading