1 | <?php |
||
13 | class Propel2AdapterTest extends TestCase |
||
14 | { |
||
15 | private $query; |
||
16 | |||
17 | /** |
||
18 | * @var Propel2Adapter |
||
19 | */ |
||
20 | private $adapter; |
||
21 | |||
22 | protected function setUp() |
||
31 | |||
32 | private function isPropel2NotAvaiable() |
||
36 | |||
37 | private function createQueryMock() |
||
44 | |||
45 | public function testGetQuery() |
||
49 | |||
50 | public function testGetNbResults() |
||
63 | |||
64 | public function testGetSlice() |
||
85 | } |
||
86 |
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: