From 4a89e1676d75c48cb6a787b5ebff1edca828170e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sun, 8 Jul 2018 09:17:15 +0200 Subject: [PATCH] No null here: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @Hypolite This is caused in include/conversation.php line 724. I don't know why there is a wrong Addon::callHooks call here, but we should fix it over there instead of suppressing the error message in the addon when adding a correct type hint. It's good actually, type hints are allowing another level of debug. Signed-off-by: Roland Häder --- blockem/blockem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockem/blockem.php b/blockem/blockem.php index 7eca1d45..412e53e5 100644 --- a/blockem/blockem.php +++ b/blockem/blockem.php @@ -139,7 +139,7 @@ function blockem_prepare_body_content_filter(App $a, array &$hook_data) } } -function blockem_display_item(App $a, array &$b = null) +function blockem_display_item(App $a, array &$b) { if (isset($b['output']) && strstr($b['output']['body'], 'id="blockem-wrap-')) { $b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg";