Handle webhooks #17
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/EventSubscriber/CreateUploadOrderRequestSubscriber.php#L39
src/EventSubscriber/CreateUploadOrderRequestSubscriber.php:39:17: MixedMethodCall: Cannot determine the type of $order when calling method setPeakWMSUploadOrderRequest (see https://psalm.dev/015)
|
src/Provider/ProductVariantProvider.php#L25
src/Provider/ProductVariantProvider.php:25:90: MixedInferredReturnType: Could not verify return type 'Sylius\Component\Core\Model\ProductVariantInterface|null' for Setono\SyliusPeakWMSPlugin\Provider\ProductVariantProvider::provideFromStockAdjustment (see https://psalm.dev/047)
|
src/Provider/ProductVariantProvider.php#L27
src/Provider/ProductVariantProvider.php:27:9: MixedAssignment: Unable to determine the type that $obj is being assigned to (see https://psalm.dev/032)
|
src/Provider/ProductVariantProvider.php#L37
src/Provider/ProductVariantProvider.php:37:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
|
This job failed
Loading