Project

General

Profile

Actions

Bug #67100

closed

ToolbarInterfaces are not compatible

Added by Stefan Froemken over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2015-05-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

Actions #1

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!!!

Actions

Also available in: Atom PDF