Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
[#158] return a truthy value
Browse files Browse the repository at this point in the history
- Per discussion with @Ocramius, a `null` value does not work currently
  until zendframework/zendframework#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.
  • Loading branch information
weierophinney committed Jul 11, 2014
1 parent 40dc818 commit 0e0a991
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0e0a991

Please sign in to comment.