Skip to content

[ECP-9489] Implement PHPStan and fix relevant issues #14

[ECP-9489] Implement PHPStan and fix relevant issues

[ECP-9489] Implement PHPStan and fix relevant issues #14

Triggered via pull request January 21, 2025 13:08
@candemiralpcandemiralp
synchronize #2843
ECP-9489
Status Failure
Total duration 1m 1s
Artifacts

phpstan.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 1 warning
build (8.2): AdminMessage/VersionMessage.php#L46
Parameter $inboxFactory of method Adyen\Payment\AdminMessage\VersionMessage::__construct() has invalid type Magento\AdminNotification\Model\InboxFactory.
build (8.2): Block/Checkout/Success.php#L43
Property Adyen\Payment\Block\Checkout\Success::$orderFactory has unknown class Magento\Sales\Model\OrderFactory as its type.
build (8.2): Block/Checkout/Success.php#L50
Parameter $orderFactory of method Adyen\Payment\Block\Checkout\Success::__construct() has invalid type Magento\Sales\Model\OrderFactory.
build (8.2): Block/Info/AbstractInfo.php#L23
Property Adyen\Payment\Block\Info\AbstractInfo::$adyenOrderPaymentCollectionFactory has unknown class Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory as its type.
build (8.2): Block/Info/AbstractInfo.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\AbstractInfo::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.2): Block/Info/Cc.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\Cc::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.2): Block/Info/Moto.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\Moto::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.2): Block/Info/PaymentMethodInfo.php#L26
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\PaymentMethodInfo::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.2): Console/Command/EnablePaymentMethodsCommand.php#L14
Property Adyen\Payment\Console\Command\EnablePaymentMethodsCommand::$paymentMethodsFactory has unknown class Adyen\Payment\Helper\PaymentMethodsFactory as its type.
build (8.2): Console/Command/EnablePaymentMethodsCommand.php#L17
Parameter $paymentMethodsFactory of method Adyen\Payment\Console\Command\EnablePaymentMethodsCommand::__construct() has invalid type Adyen\Payment\Helper\PaymentMethodsFactory.
build (8.3)
The job was canceled because "_8_2" failed.
build (8.3): AdminMessage/VersionMessage.php#L46
Parameter $inboxFactory of method Adyen\Payment\AdminMessage\VersionMessage::__construct() has invalid type Magento\AdminNotification\Model\InboxFactory.
build (8.3): Block/Checkout/Success.php#L43
Property Adyen\Payment\Block\Checkout\Success::$orderFactory has unknown class Magento\Sales\Model\OrderFactory as its type.
build (8.3): Block/Checkout/Success.php#L50
Parameter $orderFactory of method Adyen\Payment\Block\Checkout\Success::__construct() has invalid type Magento\Sales\Model\OrderFactory.
build (8.3): Block/Info/AbstractInfo.php#L23
Property Adyen\Payment\Block\Info\AbstractInfo::$adyenOrderPaymentCollectionFactory has unknown class Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory as its type.
build (8.3): Block/Info/AbstractInfo.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\AbstractInfo::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.3): Block/Info/Cc.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\Cc::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.3): Block/Info/Moto.php#L27
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\Moto::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.3): Block/Info/PaymentMethodInfo.php#L26
Parameter $adyenOrderPaymentCollectionFactory of method Adyen\Payment\Block\Info\PaymentMethodInfo::__construct() has invalid type Adyen\Payment\Model\ResourceModel\Order\Payment\CollectionFactory.
build (8.3): Console/Command/EnablePaymentMethodsCommand.php#L14
Property Adyen\Payment\Console\Command\EnablePaymentMethodsCommand::$paymentMethodsFactory has unknown class Adyen\Payment\Helper\PaymentMethodsFactory as its type.
build (8.3): Console/Command/EnablePaymentMethodsCommand.php#L17
Parameter $paymentMethodsFactory of method Adyen\Payment\Console\Command\EnablePaymentMethodsCommand::__construct() has invalid type Adyen\Payment\Helper\PaymentMethodsFactory.
build (8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636