Cleaned up a few things #3
Annotations
10 errors
src/DataMapper/SalesOrderDataMapper.php#L49
src/DataMapper/SalesOrderDataMapper.php:49:70: MoreSpecificReturnType: The declared return type 'Sylius\Component\Core\Model\PaymentMethodInterface|null' for Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapper::getPaymentMethod is more specific than the inferred return type 'Sylius\Component\Payment\Model\PaymentMethodInterface|null' (see https://psalm.dev/070)
|
src/DataMapper/SalesOrderDataMapper.php#L58
src/DataMapper/SalesOrderDataMapper.php:58:16: LessSpecificReturnStatement: The type 'Sylius\Component\Payment\Model\PaymentMethodInterface|null' is more general than the declared return type 'Sylius\Component\Core\Model\PaymentMethodInterface|null' for Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapper::getPaymentMethod (see https://psalm.dev/129)
|
src/DataMapper/SalesOrderDataMapper.php#L61
src/DataMapper/SalesOrderDataMapper.php:61:71: MoreSpecificReturnType: The declared return type 'Sylius\Component\Core\Model\ShippingMethodInterface|null' for Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapper::getShippingMethod is more specific than the inferred return type 'Sylius\Component\Shipping\Model\ShippingMethodInterface|null' (see https://psalm.dev/070)
|
src/DataMapper/SalesOrderDataMapper.php#L70
src/DataMapper/SalesOrderDataMapper.php:70:16: LessSpecificReturnStatement: The type 'Sylius\Component\Shipping\Model\ShippingMethodInterface|null' is more general than the declared return type 'Sylius\Component\Core\Model\ShippingMethodInterface|null' for Setono\SyliusPeakWMSPlugin\DataMapper\SalesOrderDataMapper::getShippingMethod (see https://psalm.dev/129)
|
src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php#L29
src/DataMapper/SalesOrderLinesSalesOrderDataMapper.php:29:54: PossiblyFalseReference: Cannot call method getTotal on possibly false value (see https://psalm.dev/105)
|
src/Factory/RegisteredWebhooksFactory.php#L14
src/Factory/RegisteredWebhooksFactory.php:14:9: TooManyTemplateParams: Sylius\Component\Resource\Factory\FactoryInterface<Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface> has too many template params, expecting 0 (see https://psalm.dev/184)
|
src/Factory/RegisteredWebhooksFactory.php#L18
src/Factory/RegisteredWebhooksFactory.php:18:34: MoreSpecificReturnType: The declared return type 'Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface' for Setono\SyliusPeakWMSPlugin\Factory\RegisteredWebhooksFactory::createNew is more specific than the inferred return type 'object' (see https://psalm.dev/070)
|
src/Factory/RegisteredWebhooksFactory.php#L20
src/Factory/RegisteredWebhooksFactory.php:20:16: LessSpecificReturnStatement: The type 'object' is more general than the declared return type 'Setono\SyliusPeakWMSPlugin\Model\RegisteredWebhooksInterface' for Setono\SyliusPeakWMSPlugin\Factory\RegisteredWebhooksFactory::createNew (see https://psalm.dev/129)
|
src/Factory/RegisteredWebhooksFactoryInterface.php#L14
src/Factory/RegisteredWebhooksFactoryInterface.php:14:54: TooManyTemplateParams: Setono\SyliusPeakWMSPlugin\Factory\RegisteredWebhooksFactoryInterface has too many template params when extending Sylius\Component\Resource\Factory\FactoryInterface, expecting 0 (see https://psalm.dev/184)
|
src/Factory/RemoteEventFactory.php#L14
src/Factory/RemoteEventFactory.php:14:9: TooManyTemplateParams: Sylius\Component\Resource\Factory\FactoryInterface<Setono\SyliusPeakWMSPlugin\Model\RemoteEventInterface> has too many template params, expecting 0 (see https://psalm.dev/184)
|
This job failed
Loading