diff --git a/TYPO3.Neos/Classes/TYPO3/Neos/Service/ContentElementWrappingService.php b/TYPO3.Neos/Classes/TYPO3/Neos/Service/ContentElementWrappingService.php index 06524411e54..60781187473 100644 --- a/TYPO3.Neos/Classes/TYPO3/Neos/Service/ContentElementWrappingService.php +++ b/TYPO3.Neos/Classes/TYPO3/Neos/Service/ContentElementWrappingService.php @@ -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)); } }