Skip to content

Commit

Permalink
TASK: Refactor absolute namespaces in Neos / Service
Browse files Browse the repository at this point in the history
  • Loading branch information
johannessteu committed Sep 25, 2016
1 parent ba44ec8 commit a09b36b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -271,7 +271,7 @@ protected function getNodeProperty(NodeInterface $node, $propertyName, &$dataTyp

// Serialize an Asset to JSON (the NodeConverter expects JSON for object type properties)
if ($dataType === ltrim(Asset::class, '\\') && $propertyValue !== null) {
if ($propertyValue instanceof Asset::class) {
if ($propertyValue instanceof Asset) {
return json_encode($this->persistenceManager->getIdentifierByObject($propertyValue));
}
}
Expand Down

0 comments on commit a09b36b

Please sign in to comment.