Skip to content
Snippets Groups Projects
Commit 47670f70 authored by Michael Birchler's avatar Michael Birchler Committed by Christian Kuhn
Browse files

[BUGFIX] Wrong type hinting in interface tslib_menu_filterMenuPagesHook

tslib_menu_filterMenuPagesHook::tslib_menu_filterMenuPagesHook expects a
tslib_tmenu object as fourth parameter $obj.
$obj should hint for tslib_menu and not as wrongly specified tslib_tmenu.
If hook is used and for example a GMENU will be processed an exception
will be thrown.

Change-Id: I0a61737755afbda6e2ab6c02ba59c078a77cc020
Resolves: #25979
Releases: 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/1649
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
parent eba63a00
Branches
Tags
No related merge requests found
......@@ -41,10 +41,10 @@ interface tslib_menu_filterMenuPagesHook {
* @param array Array of menu items
* @param array Array of page uids which are to be excluded
* @param boolean If set, then the page is a spacer.
* @param tslib_tmenu The menu object
* @param tslib_menu The menu object
* @return boolean Returns true if the page can be safely included.
*/
public function tslib_menu_filterMenuPagesHook (array &$data, array $banUidArray, $spacer, tslib_tmenu $obj);
public function tslib_menu_filterMenuPagesHook (array &$data, array $banUidArray, $spacer, tslib_menu $obj);
}
?>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment