Skip to content

Commit

Permalink
IBX-6017: Adapted solution to PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed Jun 29, 2023
1 parent 37bab3b commit 17bad37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions eZ/Publish/Core/Persistence/Legacy/Content/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -912,10 +912,12 @@ public function loadVersionInfoList(array $contentIds): array
{
$rows = $this->contentGateway->loadVersionInfoList($contentIds);
$mappedRows = array_map(
static fn ($row) => [
'id' => $row['ezcontentobject_id'],
'version' => $row['ezcontentobject_version_version'],
],
static function ($row) {
return [
'id' => $row['ezcontentobject_id'],
'version' => $row['ezcontentobject_version_version'],
];
},
$rows,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@ public function testLoadVersionInfoList(): void

$results = $gateway->loadVersionInfoList([11]);

$orig = include __DIR__ . '/../_fixtures/extract_version_info_from_rows_multiple_versions.php';
$orig = include_once __DIR__ . '/../_fixtures/extract_version_info_from_rows_multiple_versions.php';

$this->assertEquals(
[$orig[1]],
Expand Down

0 comments on commit 17bad37

Please sign in to comment.