Issue Bug Closed

#67100ToolbarInterfaces are not compatible

Stefan Froemken 05/22/15, 10:51 updated 05/22/15, 11:04

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.