Skip to content

Commit

Permalink
[BUGFIX] Fix error with spread operator in php 7.4
Browse files Browse the repository at this point in the history
In php 7.4 error occured:
`Cannot unpack array with string keys`

Related #1120
  • Loading branch information
kanow committed Oct 20, 2024
1 parent bf7ade8 commit 055a2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Command/CreateTestDataCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

$query = $connectionForTable;
foreach ($this->teaData as $item) {
$item = ['pid' => $pageUid, ...$item];
$item = ['pid' => $pageUid, 'title' => $item['title'], 'description' => $item['description']];
$query->insert(
$table,
$item
Expand Down

0 comments on commit 055a2f0

Please sign in to comment.