Skip to content

Create taxon query type #128

Create taxon query type

Create taxon query type #128

Triggered via pull request December 10, 2024 13:28
Status Failure
Total duration 53s
Artifacts

static_analysis.yml

on: pull_request
Matrix: static-analysis
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 3 warnings
phpstan: bundle/EventDispatcher/SyliusEventDispatcher.php#L22
Parameter #3 $resource (Sylius\Component\Resource\Model\ResourceInterface) of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatch() is not contravariant with parameter #3 $resource (Sylius\Resource\Model\ResourceInterface) of method Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatch().
phpstan: bundle/EventDispatcher/SyliusEventDispatcher.php#L40
Parameter #3 $resource (Sylius\Component\Resource\Model\ResourceInterface) of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPreEvent() is not contravariant with parameter #3 $resource (Sylius\Resource\Model\ResourceInterface) of method Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPreEvent().
phpstan: bundle/EventDispatcher/SyliusEventDispatcher.php#L49
Parameter #3 $resource (Sylius\Component\Resource\Model\ResourceInterface) of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPostEvent() is not contravariant with parameter #3 $resource (Sylius\Resource\Model\ResourceInterface) of method Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPostEvent().
phpstan: bundle/EventDispatcher/SyliusEventDispatcher.php#L58
Parameter #3 $resource (Sylius\Component\Resource\Model\ResourceInterface) of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchInitializeEvent() is not contravariant with parameter #3 $resource (Sylius\Resource\Model\ResourceInterface) of method Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchInitializeEvent().
phpstan: bundle/Templating/Twig/Runtime/SyliusRuntime.php#L26
PHPDoc tag @param for parameter $localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan: bundle/Templating/Twig/Runtime/SyliusRuntime.php#L30
PHPDoc type for property Netgen\Bundle\LayoutsSyliusBundle\Templating\Twig\Runtime\SyliusRuntime::$localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan: lib/Layout/Resolver/Form/ConditionType/Mapper/Locale.php#L16
PHPDoc tag @param for parameter $localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan: lib/Layout/Resolver/Form/ConditionType/Mapper/Locale.php#L16
PHPDoc type for property Netgen\Layouts\Sylius\Layout\Resolver\Form\ConditionType\Mapper\Locale::$localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan: lib/Validator/LocaleValidator.php#L21
PHPDoc tag @param for parameter $localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan: lib/Validator/LocaleValidator.php#L21
PHPDoc type for property Netgen\Layouts\Sylius\Validator\LocaleValidator::$localeRepository contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan-tests: tests/bundle/EventDispatcher/SyliusEventDispatcherTest.php#L59
Parameter #3 $resource of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatch() expects Sylius\Component\Resource\Model\ResourceInterface, Netgen\Layouts\Sylius\Tests\Stubs\Product given.
phpstan-tests: tests/bundle/EventDispatcher/SyliusEventDispatcherTest.php#L111
Parameter #3 $resource of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPreEvent() expects Sylius\Component\Resource\Model\ResourceInterface, Netgen\Layouts\Sylius\Tests\Stubs\Product given.
phpstan-tests: tests/bundle/EventDispatcher/SyliusEventDispatcherTest.php#L137
Parameter #3 $resource of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPostEvent() expects Sylius\Component\Resource\Model\ResourceInterface, Netgen\Layouts\Sylius\Tests\Stubs\Product given.
phpstan-tests: tests/bundle/EventDispatcher/SyliusEventDispatcherTest.php#L163
Parameter #3 $resource of method Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchInitializeEvent() expects Sylius\Component\Resource\Model\ResourceInterface, Netgen\Layouts\Sylius\Tests\Stubs\Product given.
phpstan-tests: tests/lib/Layout/Resolver/ConditionType/ChannelTest.php#L51
Parameter #1 $repository of class Netgen\Layouts\Sylius\Tests\Validator\RepositoryValidatorFactory constructor expects Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface>, PHPUnit\Framework\MockObject\MockObject&Sylius\Component\Channel\Repository\ChannelRepositoryInterface given.
phpstan-tests: tests/lib/Layout/Resolver/ConditionType/ChannelTest.php#L67
Parameter #1 $repository of class Netgen\Layouts\Sylius\Tests\Validator\RepositoryValidatorFactory constructor expects Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface>, PHPUnit\Framework\MockObject\MockObject&Sylius\Component\Channel\Repository\ChannelRepositoryInterface given.
phpstan-tests: tests/lib/Layout/Resolver/ConditionType/ChannelTest.php#L77
Parameter #1 $repository of class Netgen\Layouts\Sylius\Tests\Validator\RepositoryValidatorFactory constructor expects Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface>, PHPUnit\Framework\MockObject\MockObject&Sylius\Component\Channel\Repository\ChannelRepositoryInterface given.
phpstan-tests: tests/lib/Layout/Resolver/ConditionType/LocaleTest.php#L24
PHPDoc tag @var for property Netgen\Layouts\Sylius\Tests\Layout\Resolver\ConditionType\LocaleTest::$localeRepositoryMock contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan-tests: tests/lib/Layout/Resolver/Form/ConditionType/Mapper/LocaleTest.php#L22
PHPDoc tag @var for property Netgen\Layouts\Sylius\Tests\Layout\Resolver\Form\ConditionType\Mapper\LocaleTest::$localeRepositoryMock contains generic type Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> but interface Sylius\Component\Resource\Repository\RepositoryInterface is not generic.
phpstan-tests: tests/lib/Layout/Resolver/TargetType/ProductTest.php#L45
Parameter #1 $repository of class Netgen\Layouts\Sylius\Tests\Validator\RepositoryValidatorFactory constructor expects Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Resource\Model\ResourceInterface>, PHPUnit\Framework\MockObject\MockObject&Sylius\Component\Product\Repository\ProductRepositoryInterface given.
MethodSignatureMismatch: bundle/EventDispatcher/SyliusEventDispatcher.php#L22
bundle/EventDispatcher/SyliusEventDispatcher.php:22:111: MethodSignatureMismatch: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatch has wrong type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatch (see https://psalm.dev/042)
MoreSpecificImplementedParamType: bundle/EventDispatcher/SyliusEventDispatcher.php#L22
bundle/EventDispatcher/SyliusEventDispatcher.php:22:111: MoreSpecificImplementedParamType: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatch has the more specific type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatch (see https://psalm.dev/140)
MethodSignatureMismatch: bundle/EventDispatcher/SyliusEventDispatcher.php#L40
bundle/EventDispatcher/SyliusEventDispatcher.php:40:119: MethodSignatureMismatch: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPreEvent has wrong type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPreEvent (see https://psalm.dev/042)
MoreSpecificImplementedParamType: bundle/EventDispatcher/SyliusEventDispatcher.php#L40
bundle/EventDispatcher/SyliusEventDispatcher.php:40:119: MoreSpecificImplementedParamType: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPreEvent has the more specific type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPreEvent (see https://psalm.dev/140)
MethodSignatureMismatch: bundle/EventDispatcher/SyliusEventDispatcher.php#L49
bundle/EventDispatcher/SyliusEventDispatcher.php:49:120: MethodSignatureMismatch: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPostEvent has wrong type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPostEvent (see https://psalm.dev/042)
MoreSpecificImplementedParamType: bundle/EventDispatcher/SyliusEventDispatcher.php#L49
bundle/EventDispatcher/SyliusEventDispatcher.php:49:120: MoreSpecificImplementedParamType: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchPostEvent has the more specific type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchPostEvent (see https://psalm.dev/140)
MethodSignatureMismatch: bundle/EventDispatcher/SyliusEventDispatcher.php#L58
bundle/EventDispatcher/SyliusEventDispatcher.php:58:126: MethodSignatureMismatch: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchInitializeEvent has wrong type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchInitializeEvent (see https://psalm.dev/042)
MoreSpecificImplementedParamType: bundle/EventDispatcher/SyliusEventDispatcher.php#L58
bundle/EventDispatcher/SyliusEventDispatcher.php:58:126: MoreSpecificImplementedParamType: Argument 3 of Netgen\Bundle\LayoutsSyliusBundle\EventDispatcher\SyliusEventDispatcher::dispatchInitializeEvent has the more specific type 'Sylius\Component\Resource\Model\ResourceInterface', expecting 'Sylius\Resource\Model\ResourceInterface' as defined by Sylius\Bundle\ResourceBundle\Controller\EventDispatcherInterface::dispatchInitializeEvent (see https://psalm.dev/140)
TooManyTemplateParams: bundle/Templating/Twig/Runtime/SyliusRuntime.php#L24
bundle/Templating/Twig/Runtime/SyliusRuntime.php:24:15: TooManyTemplateParams: Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> has too many template params, expecting 0 (see https://psalm.dev/184)
TooManyTemplateParams: lib/Layout/Resolver/Form/ConditionType/Mapper/Locale.php#L14
lib/Layout/Resolver/Form/ConditionType/Mapper/Locale.php:14:15: TooManyTemplateParams: Sylius\Component\Resource\Repository\RepositoryInterface<Sylius\Component\Locale\Model\LocaleInterface> has too many template params, expecting 0 (see https://psalm.dev/184)
phpstan
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
phpstan-tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
psalm
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636