N°4756 - Ease extensibility for CRUD operations : Event Service - Fix RegisterListener() signature and calls

This commit is contained in:
Eric Espie
2023-02-14 11:26:47 +01:00
parent 8b18fd7cc0
commit c0589715c1
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ final class EventService
* @return string Id of the registration
*
*/
public static function RegisterListener(string $sEvent, callable $callback, $sEventSource = null, $aCallbackData = [], $context = null, float $fPriority = 0.0, $sModuleId = ''): string
public static function RegisterListener(string $sEvent, callable $callback, $sEventSource = null, array $aCallbackData = [], $context = null, float $fPriority = 0.0, $sModuleId = ''): string
{
if (!is_callable($callback, false, $sName)) {
return false;