Deprecation: #87305 - Use constructor injection in DataMapper

See Issue #87305

Description

The 8th argument (\TYPO3\CMS\Extbase\Persistence\QueryInterface) of method \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper->__construct has been marked deprecated.

Impact

Instantiating objects along with that argument will trigger a deprecation warning.

Affected Installations

All installations that create instances of the class \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper while providing the 8th argument.

Migration

Instantiate the object without the 8th argument and use \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper->setQuery if needed.