b2binpay /
magento2
| 1 | <?php |
||
| 2 | |||
| 3 | namespace B2Binpay\Payment\Observer; |
||
| 4 | |||
| 5 | use Magento\Framework\Event\Observer; |
||
|
0 ignored issues
–
show
|
|||
| 6 | use Magento\Payment\Observer\AbstractDataAssignObserver; |
||
|
0 ignored issues
–
show
The type
Magento\Payment\Observer...tractDataAssignObserver was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 7 | |||
| 8 | class DataAssignObserver extends AbstractDataAssignObserver |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function execute(Observer $observer) |
||
| 14 | { |
||
| 15 | $method = $this->readMethodArgument($observer); |
||
| 16 | $data = $this->readDataArgument($observer); |
||
| 17 | |||
| 18 | $paymentInfo = $method->getInfoInstance(); |
||
| 19 | |||
| 20 | if ($data->getDataByKey('additional_data') !== null) { |
||
| 21 | foreach ($data->getDataByKey('additional_data') as $key => $value) { |
||
| 22 | $paymentInfo->setAdditionalInformation( |
||
| 23 | $key, |
||
| 24 | $value |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | } |
||
| 28 | } |
||
| 29 | } |
||
| 30 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths