Issue Bug Closed

#69476Declaration of TYPO3\CMS\Core\Package\PackageManager::injectClassLoader() should be compatible with TYPO3\Flow\Package\PackageManager::injectClassLoader(TYPO3\Flow\Core\ClassLoader $classLoader)

Martin Helmich 09/02/15, 15:33 updated 10/02/18, 11:34

Description

The class TYPO3\CMS\Core\Package\PackageManager overwrites the method injectClassLoader from it’s parent class with a different signature (the type hint is TYPO3\CMS\Core\Core\ClassLoader instead of TYPO3\Flow\Core\ClassLoader). This violates the Liskov Substitution Principle and triggers warnings when PHP’s error level includes the E_STRICT bit (this single issue fills our error logs with ~140 million lines per day).

Proposed fix on Gerrit will follow shortly.

Reviews 1