Skip to content

Commit 9a57061

Browse files
committed
fixed: use correct return type in group tool event handler
fixes #131
1 parent 2f73e52 commit 9a57061

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

classes/ColdTrick/WidgetManager/Groups.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace ColdTrick\WidgetManager;
44

5+
use Elgg\Collections\Collection;
56
use Elgg\Groups\Tool;
67

78
/**
@@ -252,9 +253,9 @@ public static function getGroupWidgetsLayout(\Elgg\Event $event): ?array {
252253
*
253254
* @param \Elgg\Event $event 'tool_options', 'group'
254255
*
255-
* @return null|array
256+
* @return null|Collection
256257
*/
257-
public static function registerGroupWidgetsTool(\Elgg\Event $event): ?array {
258+
public static function registerGroupWidgetsTool(\Elgg\Event $event): ?Collection {
258259
$plugin = elgg_get_plugin_from_id('widget_manager');
259260
if ($plugin->getSetting('group_enable') !== 'yes') {
260261
return null;

0 commit comments

Comments
 (0)