Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function serializationProvider() { |
||
59 | return [ |
||
60 | [ |
||
61 | [], |
||
62 | new ReferenceList() |
||
63 | ], |
||
64 | [ |
||
65 | [ |
||
66 | [ |
||
67 | 'hash' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709', |
||
68 | 'snaks' => [] |
||
69 | ], |
||
70 | [ |
||
71 | 'hash' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709', |
||
72 | 'snaks' => [] |
||
73 | ] |
||
74 | ], |
||
75 | new ReferenceList( [ |
||
76 | new Reference( [ new PropertyNoValueSnak( 1 ) ] ), |
||
77 | new Reference( [ new PropertyNoValueSnak( 1 ) ] ) |
||
78 | ] ) |
||
79 | ], |
||
80 | ]; |
||
81 | } |
||
82 | |||
84 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: