From 055a2f07bc0d54cce5cde26576e3113c946f70a0 Mon Sep 17 00:00:00 2001 From: Karsten Nowak Date: Tue, 20 Aug 2024 09:15:23 +0200 Subject: [PATCH] [BUGFIX] Fix error with spread operator in php 7.4 In php 7.4 error occured: `Cannot unpack array with string keys` Related #1120 --- Classes/Command/CreateTestDataCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Command/CreateTestDataCommand.php b/Classes/Command/CreateTestDataCommand.php index 6cc8d2a..7e17cc7 100644 --- a/Classes/Command/CreateTestDataCommand.php +++ b/Classes/Command/CreateTestDataCommand.php @@ -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