From 0e0a99126af4136af1714e4b6e8ab38b448c1327 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Fri, 11 Jul 2014 14:50:32 -0500 Subject: [PATCH] [#158] return a truthy value - Per discussion with @Ocramius, a `null` value does not work currently until zendframework/zf2#6147 is in a released version. That patch fixes a `!$value` call to more correctly be a `false === $value` call; until then, a truthy, but not boolean true, return value will also still work. --- .../Listener/EventLoggingListenerAggregate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ZendDeveloperTools/Listener/EventLoggingListenerAggregate.php b/src/ZendDeveloperTools/Listener/EventLoggingListenerAggregate.php index 57b5ae0..7d8f5e9 100644 --- a/src/ZendDeveloperTools/Listener/EventLoggingListenerAggregate.php +++ b/src/ZendDeveloperTools/Listener/EventLoggingListenerAggregate.php @@ -86,5 +86,10 @@ public function onCollectEvent(Event $event) foreach ($this->collectors as $collector) { $collector->collectEvent('application', $event); } + + // @TODO workaround, to be removed when https://github.com/zendframework/zf2/pull/6147 is fixed + // Returns a "truthy" value, but not boolean true, to ensure that cases such as https://github.com/zfcampus/zf-apigility/issues/56 + // continue to work correctly as well. + return 1; } }