Breaking: #87594 - Harden extbase

See Issue #87594

Description

While hardening Extbase classes, method signatures changed due to an enforced strict type mode and introduced type hints for scalars. The change of signatures is considered breaking for the following methods of the following interfaces and their implementations and for the following classes and their derivatives:

  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::getUid
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::setPid
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::getPid
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_isNew
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_setProperty
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getProperty
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getProperties
  • \TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface::_getCleanProperty
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::getUid
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::setPid
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::getPid
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::_isNew
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::_setProperty
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::_getProperty
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::_getProperties
  • \TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject::_getCleanProperty
  • \TYPO3\CMS\Extbase\Service\ImageService::applyProcessingInstructions
  • \TYPO3\CMS\Extbase\Service\ImageService::getImageUri
  • \TYPO3\CMS\Extbase\Service\ImageService::getImage
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getSupportedSourceTypes()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getSupportedTargetType()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getTargetTypeForSource()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getPriority()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::canConvertFrom()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getSourceChildPropertiesToBeConverted()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::getTypeOfChildProperty()
  • \TYPO3\CMS\Extbase\Property\TypeConverterInterface::convertFrom()
  • \TYPO3\CMS\Extbase\Error\Message::__construct
  • \TYPO3\CMS\Extbase\Error\Message::getMessage
  • \TYPO3\CMS\Extbase\Error\Message::getCode
  • \TYPO3\CMS\Extbase\Error\Message::getArguments
  • \TYPO3\CMS\Extbase\Error\Message::getTitle
  • \TYPO3\CMS\Extbase\Error\Message::render
  • \TYPO3\CMS\Extbase\Configuration\ConfigurationManager::getContentObject
  • \TYPO3\CMS\Extbase\Configuration\ConfigurationManager::getConfiguration
  • \TYPO3\CMS\Extbase\Configuration\ConfigurationManager::isFeatureEnabled
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::reset()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::build()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::uriFor()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setAbsoluteUriScheme()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setAddQueryString()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setAddQueryStringMethod()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setArgumentPrefix()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setArguments()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setArgumentsToBeExcludedFromQueryString()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setCreateAbsoluteUri()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setFormat()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setLinkAccessRestrictedPages()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setNoCache()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setSection()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setTargetPageType()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setTargetPageUid()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::setUseCacheHash()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getAddQueryString()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getAddQueryStringMethod()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getArguments()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getArgumentsToBeExcludedFromQueryString()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getCreateAbsoluteUri()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getFormat()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getLinkAccessRestrictedPages()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getNoCache()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getSection()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getTargetPageUid()
  • \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder::getUseCacheHash()

Impact

PHP might throw a fatal error if the method signature(s) of your implementations/derivatives aren’t compatible with the interface(s) and/or parent class(es).

Affected Installations

  • All installations that use classes that implement mentioned interfaces and their methods.
  • All installations that use classes that inherit mentioned classes and overwrite their methods.

Migration

Methods need to be adjusted to be compatible with the parent class and/or interface signature.