Issue Bug Closed

#51420non static method getAvailableWorkspaces()

Tomasz Krawczyk 08/28/13, 08:18 updated 10/02/18, 12:10

Description

I had such an error message in TYPO3 6.1.3

PHP Runtime Notice: Non-static method TYPO3\\CMS\\Workspaces\\Service\\WorkspaceService::getAvailableWorkspaces() should not be called statically, assuming $this from incompatible context in D:\\wamp\\www\\typo3_src-6.1.3\\typo3\\sysext\\workspaces\\Classes\\ExtDirect\\WorkspaceSelectorToolbarItem.php line 78

When I made this method static in \typo3\sysext\workspaces\Classes\Service\WorkspaceService.php then message disappears.

Reviews 2