Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit c230caf

Browse files
committed
update typehint for more compatibility.
1 parent 74086b2 commit c230caf

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/EZComments/HookHandlers.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* information regarding copyright and licensing.
1212
*/
1313

14+
use Zikula\Core\Hook\DisplayHook;
15+
1416
/**
1517
* EZComments Hooks Handlers.
1618
*/
@@ -23,12 +25,15 @@ class EZComments_HookHandlers extends Zikula_Hook_AbstractHandler
2325
* Subject is the object being viewed that we're attaching to.
2426
* args[id] Is the id of the object.
2527
* args[caller] the module who notified of this event.
26-
*
28+
* NOTE:
29+
* Zikula_DisplayHook extends Zikula\Core\Hook\DisplayHook
30+
* SO - this method SHOULD be backward compatible with old hooks.
31+
*
2732
* @param Zikula_Hook $hook The hook.
2833
*
2934
* @return void
3035
*/
31-
public function uiView(Zikula_DisplayHook $hook)
36+
public function uiView(DisplayHook $hook)
3237
{
3338
// work out the input from the hook
3439
$mod = $hook->getCaller();

0 commit comments

Comments
 (0)