mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-09 02:56:12 +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
bf7ade8f98
commit
055a2f07bc
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ final class CreateTestDataCommand extends Command
|
||||||
|
|
||||||
$query = $connectionForTable;
|
$query = $connectionForTable;
|
||||||
foreach ($this->teaData as $item) {
|
foreach ($this->teaData as $item) {
|
||||||
$item = ['pid' => $pageUid, ...$item];
|
$item = ['pid' => $pageUid, 'title' => $item['title'], 'description' => $item['description']];
|
||||||
$query->insert(
|
$query->insert(
|
||||||
$table,
|
$table,
|
||||||
$item
|
$item
|
||||||
|
|
Loading…
Reference in a new issue