mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-09 02:36: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:
Karsten Nowak 2024-08-20 09:15:23 +02:00
parent bf7ade8f98
commit 055a2f07bc

View file

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