Skip to content

Commit

Permalink
EZEE-3094: Added missing int casting in the RelationProcessor::getRel…
Browse files Browse the repository at this point in the history
…atedObjectIds (#138)
  • Loading branch information
adamwojs authored Apr 10, 2020
1 parent 08e983b commit 81a5050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/eZ/RichText/RelationProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ private function getRelatedObjectIds(DOMDocument $xml, array $tagNames): array
}

if ($scheme === 'ezcontent') {
$contentIds[] = $id;
$contentIds[] = (int)$id;
} elseif ($scheme === 'ezlocation') {
$locationIds[] = $id;
$locationIds[] = (int)$id;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/eZ/RichText/RelationProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testGetRelations(DOMDocument $document, array $expectedRelations
{
$actualProcessor = (new RelationProcessor())->getRelations($document);

$this->assertEquals($expectedRelations, $actualProcessor);
$this->assertSame($expectedRelations, $actualProcessor);
}

public function dateProviderForGetRelations(): array
Expand Down

0 comments on commit 81a5050

Please sign in to comment.