1 | <?php |
||
12 | class CompatibilityFactoryTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var Factory |
||
16 | */ |
||
17 | private $factory; |
||
18 | |||
19 | public function setup() |
||
23 | |||
24 | /** |
||
25 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
26 | */ |
||
27 | public function testCreate() |
||
31 | |||
32 | /** |
||
33 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
34 | */ |
||
35 | public function testCreateReader() |
||
39 | |||
40 | /** |
||
41 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
42 | */ |
||
43 | public function testCreateWriter() |
||
47 | |||
48 | /** |
||
49 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
50 | */ |
||
51 | public function testCreateStreamedResponse() |
||
59 | |||
60 | /** |
||
61 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
62 | */ |
||
63 | public function testCreateHelperHtml() |
||
69 | |||
70 | /** |
||
71 | * @covers \Onurb\Bundle\ExcelBundle\Factory\CompatibilityFactory |
||
72 | */ |
||
73 | public function testCreatePHPExcelWorksheetDrawing() |
||
79 | } |
||
80 |
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: