Closed sascha-egerer closed 5 years ago
When using the TYPO3 CMIS FAL integration (https://github.com/dkd/typo3-ext-cmis-fal) sometime an error occurs that a value has been casted from null to string.
null
string
0 /foo/typo3conf/php-cmis/src/Traits/TypeHelperTrait.php(69): Dkd\PhpCmis\DataObjects\AbstractExtensionData->checkType('string', NULL, false) 1 /foo/typo3conf/php-cmis/src/DataObjects/AbstractTypeDefinition.php(172): Dkd\PhpCmis\DataObjects\AbstractExtensionData->castValueToSimpleType('string', NULL) 2 /foo/typo3conf/php-cmis/vendor/dkd/php-populate/src/PopulateTrait.php(299): Dkd\PhpCmis\DataObjects\AbstractTypeDefinition->setLocalNamespace(NULL) 3 /foo/typo3conf/php-cmis/vendor/dkd/php-populate/src/PopulateTrait.php(145): Dkd\PhpCmis\DataObjects\AbstractExtensionData->setPopulatedProperty('localNamespace', NULL, false) 4 /foo/typo3conf/php-cmis/vendor/dkd/php-populate/src/PopulateTrait.php(63): Dkd\PhpCmis\DataObjects\AbstractExtensionData->populateInternal(Object(Dkd\PhpCmis\DataObjects\DocumentTypeDefinition), Array, false, false) 5 /foo/typo3conf/php-cmis/src/DataObjects/DocumentType.php(46): Dkd\PhpCmis\DataObjects\AbstractExtensionData->populate(Object(Dkd\PhpCmis\DataObjects\DocumentTypeDefinition)) 6 /foo/typo3conf/php-cmis/src/ObjectFactory.php(480): Dkd\PhpCmis\DataObjects\DocumentType->__construct(Object(Dkd\PhpCmis\Session), Object(Dkd\PhpCmis\DataObjects\DocumentTypeDefinition)) 7 /foo/typo3conf/php-cmis/src/Session.php(1314): Dkd\PhpCmis\ObjectFactory->convertTypeDefinition(Object(Dkd\PhpCmis\DataObjects\DocumentTypeDefinition)) 8 /foo/typo3conf/php-cmis/src/Session.php(1098): Dkd\PhpCmis\Session->convertTypeDefinition(Object(Dkd\PhpCmis\DataObjects\DocumentTypeDefinition)) 9 /foo/typo3conf/php-cmis/src/ObjectFactory.php(563): Dkd\PhpCmis\Session->getTypeDefinition('cmis:document') 10 /foo/typo3conf/php-cmis/src/ObjectFactory.php(145): Dkd\PhpCmis\ObjectFactory->getTypeFromObjectData(Object(Dkd\PhpCmis\DataObjects\ObjectData)) 11 /foo/typo3conf/php-cmis/src/Session.php(926): Dkd\PhpCmis\ObjectFactory->convertObject(Object(Dkd\PhpCmis\DataObjects\ObjectData), Object(Dkd\PhpCmis\OperationContext)) 12 /foo/typo3conf/ext/cmis_fal/Classes/Driver/Versioned/AbstractSharedCMISFilesystemDriver.php(342): Dkd\PhpCmis\Session->getObject(Object(Dkd\PhpCmis\DataObjects\ObjectId), Object(Dkd\PhpCmis\OperationContext)) 13 /foo/typo3conf/ext/cmis_fal/Classes/Driver/SubAssertionDriver.php(73):
When using the TYPO3 CMIS FAL integration (https://github.com/dkd/typo3-ext-cmis-fal) sometime an error occurs that a value has been casted from
null
tostring
.