From: Alexander Ebert Date: Tue, 16 Dec 2014 12:26:06 +0000 (+0100) Subject: self cannot be used inside a closure (at least not in PHP 5.3) X-Git-Tag: 2.1.0_Beta_2~31 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48dc47d1be95d5e5c44d0482aca9f9ce782b56c5;p=GitHub%2FWoltLab%2FWCF.git self cannot be used inside a closure (at least not in PHP 5.3) --- diff --git a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php index eed04584dc..ae795a1232 100644 --- a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php @@ -111,7 +111,7 @@ class PreParserAtUserListener implements IParameterizedEventListener { // containing only the part before the first space if (isset($matches[2])) $usernames[] = $matches[2]; - $usernames = array_map(array('self', 'getUsername'), $usernames); + $usernames = array_map(array('\wcf\system\event\listener\PreParserAtUserListener', 'getUsername'), $usernames); foreach ($usernames as $username) { if (!isset($users[$username])) continue;