Bug #67100
closedToolbarInterfaces are not compatible
100%
Description
Hello Core-Team,
after requesting /typo3 directory I get following error message:
Fatal error: Declaration of TYPO3\CMS\Workspaces\ExtDirect\WorkspaceSelectorToolbarItem::__construct() must be compatible with that of TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface::__construct() in /kunden/.../typo3cms/typo3_src-6.2.12/typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php on line 28
I have added a & (reference) to the declaration to the Interface, but now I get following error message:
Fatal error: Declaration of TYPO3\CMS\Backend\Toolbar\ShortcutToolbarItem::__construct() must be compatible with that of TYPO3\CMS\Backend\Toolbar\ToolbarItemHookInterface::__construct() in /kunden/.../typo3cms/typo3_src-6.2.12/typo3/sysext/backend/Classes/Toolbar/ShortcutToolbarItem.php on line 27
So it would be good to sanitize all these ToolbarClasses to be compatible with this Interface.
What is the best way? Add or remove the & from Interface?
Same problem with PHP 5.5.14
Stefan
Updated by Stefan Froemken over 9 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Argh! What's that? On my local machine everything works and all classes have the & set. So the customer must have modified the source code. Oh dear!!!