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:
Karsten Nowak 2024-08-20 09:15:23 +02:00
parent 73b8069137
commit a7101db787

View file

@ -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