We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e599042 commit f23d0ebCopy full SHA for f23d0eb
jsonld.php
@@ -3695,7 +3695,9 @@ protected function _createNodeMap(
3695
3696
// copy non-@type keywords
3697
if($property !== '@type' && self::_isKeyword($property)) {
3698
- if($property === '@index' && property_exists($subject, '@index')) {
+ if($property === '@index' && property_exists($subject, '@index')
3699
+ && ($input->{'@index'} !== $subject->{'@index'}
3700
+ || $input->{'@index'}->{'@id'} !== $subject->{'@index'}->{'@id'})) {
3701
throw new JsonLdException(
3702
'Invalid JSON-LD syntax; conflicting @index property detected.',
3703
'jsonld.SyntaxError', 'conflicting indexes',
0 commit comments