1 | <?php |
||
39 | class DatabaseConnection implements Connection |
||
40 | { |
||
41 | /** |
||
42 | * connection |
||
43 | * |
||
44 | * @var \TYPO3\CMS\Core\Database\DatabaseConnection $connection |
||
45 | */ |
||
46 | protected $connection; |
||
47 | |||
48 | /** |
||
49 | * output |
||
50 | * |
||
51 | * @var \TildBJ\Seeder\Message $message |
||
52 | */ |
||
53 | protected $message; |
||
54 | |||
55 | /** |
||
56 | * closures |
||
57 | * |
||
58 | * @var array $closures |
||
59 | */ |
||
60 | protected $closures; |
||
61 | |||
62 | /** |
||
63 | * lastInsertId |
||
64 | * |
||
65 | * @var integer $lastInsertId |
||
66 | */ |
||
67 | protected $lastInsertId; |
||
68 | |||
69 | /** |
||
70 | * DatabaseConnection constructor. |
||
71 | * |
||
72 | * @param \TYPO3\CMS\Core\Database\DatabaseConnection $connection |
||
73 | * @param \TildBJ\Seeder\Message $message |
||
74 | */ |
||
75 | public function __construct( |
||
82 | |||
83 | /** |
||
84 | * fetch |
||
85 | * |
||
86 | * @param array $seedArray |
||
87 | * @throws Seeder\Exception |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function fetch(array $seedArray) |
||
101 | } |
||
102 |
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: