Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | protected function buildSerializer() { |
||
20 | $referenceSerializerFake = $this->getMockBuilder( Serializer::class )->getMock(); |
||
21 | $referenceSerializerFake->expects( $this->any() ) |
||
22 | ->method( 'serialize' ) |
||
23 | ->will( $this->returnValue( [ |
||
24 | 'hash' => 'da39a3ee5e6b4b0d3255bfef95601890afd80709', |
||
25 | 'snaks' => [] |
||
26 | ] ) ); |
||
27 | |||
28 | return new ReferenceListSerializer( $referenceSerializerFake ); |
||
|
|||
29 | } |
||
30 | |||
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: