1 | <?php |
||
2 | |||
3 | namespace Pronamic\WordPress\Pay\Gateways\IDealAdvancedV3\XML; |
||
4 | |||
5 | use Pronamic_WP_Pay_Gateways_IDealAdvancedV3_Transaction; |
||
0 ignored issues
–
show
|
|||
6 | use SimpleXMLElement; |
||
7 | |||
8 | /** |
||
9 | * Title: iDEAL status response XML message |
||
10 | * Description: |
||
11 | * Copyright: 2005-2020 Pronamic |
||
12 | * Company: Pronamic |
||
13 | * |
||
14 | * @author Remco Tolsma |
||
15 | * @version 2.0.0 |
||
16 | */ |
||
17 | class AcquirerStatusResMessage extends ResponseMessage { |
||
18 | /** |
||
19 | * The document element name |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | const NAME = 'AcquirerStatusRes'; |
||
24 | |||
25 | /** |
||
26 | * Transaction |
||
27 | * |
||
28 | * @var Pronamic_WP_Pay_Gateways_IDealAdvancedV3_Transaction |
||
29 | */ |
||
30 | public $transaction; |
||
31 | |||
32 | /** |
||
33 | * Constructs and initialize an status response message |
||
34 | */ |
||
35 | public function __construct() { |
||
36 | parent::__construct( self::NAME ); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Parse the specified XML into an directory response message object |
||
41 | * |
||
42 | * @param SimpleXMLElement $xml |
||
43 | * |
||
44 | * @return ResponseMessage |
||
45 | */ |
||
46 | public static function parse( SimpleXMLElement $xml ) { |
||
47 | $message = self::parse_create_date( $xml, new self() ); |
||
48 | |||
49 | $message->transaction = TransactionParser::parse( $xml->Transaction ); |
||
0 ignored issues
–
show
It seems like
Pronamic\WordPress\Pay\G...arse($xml->Transaction) of type Pronamic\WordPress\Pay\G...lAdvancedV3\Transaction is incompatible with the declared type Pronamic_WP_Pay_Gateways...lAdvancedV3_Transaction of property $transaction .
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property. Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property.. ![]() |
|||
50 | |||
51 | return $message; |
||
52 | } |
||
53 | } |
||
54 |
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