mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-21 22:36: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; $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