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

Commit e1ac57e

Browse files
committed
update typehint for more compatibility.
1 parent 0a7c9e3 commit e1ac57e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

lib/Scribite/HookHandlers.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use Zikula\Core\Hook\DisplayHook;
4+
35
/**
46
* Zikula Application Framework
57
*
@@ -29,12 +31,15 @@ public function setup()
2931

3032
/**
3133
* Display a html snippet with buttons for inserting Scribites into a textarea
34+
* NOTE:
35+
* Zikula_DisplayHook extends Zikula\Core\Hook\DisplayHook
36+
* SO - this method SHOULD be backward compatible with old hooks.
3237
*
33-
* @param Zikula_Hook $hook
38+
* @param DisplayHook $hook
3439
*
3540
* @return void
3641
*/
37-
public function uiEdit(Zikula_DisplayHook $hook)
42+
public function uiEdit(DisplayHook $hook)
3843
{
3944
// get the module name
4045
$module = $hook->getCaller();

0 commit comments

Comments
 (0)