Commit 6b248b0f authored by janschoenherr's avatar janschoenherr

Update src/Silex/Application.php

EventDispatcher addListener function has no return value
parent e1273195
......@@ -250,7 +250,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
*/
public function on($eventName, $callback, $priority = 0)
{
return $this['dispatcher']->addListener($eventName, $callback, $priority);
$this['dispatcher']->addListener($eventName, $callback, $priority);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment