Skip to content
Snippets Groups Projects
Commit 6150ec49 authored by Sébastien's avatar Sébastien Committed by Florent Torregrosa
Browse files

Issue #3315305 by Seb_R: PHP 8 / str_replace(): Argument #2 ($replace) must...

Issue #3315305 by Seb_R: PHP 8 /  str_replace(): Argument #2 ($replace) must be of type array|string, int given in str_replace()
parent 17abaf48
No related merge requests found
......@@ -700,7 +700,7 @@ class JsonapiHelper implements JsonapiHelperInterface {
// Get link to remote entity. Need to manually create the link to avoid
// getting alias from local website.
if (isset($entity_keys['id']) && $resource_type->hasField($entity_keys['id'])) {
$remote_entity_id = $data['attributes'][$resource_type->getPublicName($entity_keys['id'])];
$remote_entity_id = strval($data['attributes'][$resource_type->getPublicName($entity_keys['id'])]);
$entity_definition = $this->entityDefinitions[$entity_type_id];
if ($entity_definition->hasLinkTemplate('canonical')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment