From a7101db787e439ab686438ff2d11585821466752 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