mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-21 17:56:13 +01:00
[BUGFIX] Fix error with spread operator in php 7.4
In php 7.4 error occured: `Cannot unpack array with string keys` Related #1120
This commit is contained in:
parent
73b8069137
commit
a7101db787
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ final class CreateTestDataCommand extends Command
|
|||
|
||||
$query = $connectionForTable;
|
||||
foreach ($this->teaData as $item) {
|
||||
$item = ['pid' => $pageUid, ...$item];
|
||||
$item = ['pid' => $pageUid, 'title' => $item['title'], 'description' => $item['description']];
|
||||
$query->insert(
|
||||
$table,
|
||||
$item
|
||||
|
|
Loading…
Reference in a new issue