Skip to content

Commit 4930e19

Browse files
author
Nathan Sepulveda
committed
Merge pull request #13 from thephpeffect/dev-1
Dev 1
2 parents bcb1d2d + f2fdc9a commit 4930e19

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getName()
6464
* @param array $args The arguments to be passed to each handler
6565
* @return mixed An array of results for each handler run
6666
*/
67-
public function fire($args = array())
67+
public function fire(array $args = array())
6868
{
6969
$hc = $this->getHandlerCollection();
7070
$handlers = $hc->getHandlers();

src/Triggr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function watch($eventPhrase, callable $func, array $handlerOptions
3333
* @param array|null $args The arguments to be passed to each handler
3434
* @return array An array of all returned values from the handlers
3535
*/
36-
public static function fire($eventName, array $args = null)
36+
public static function fire($eventName, array $args = array())
3737
{
3838
return self::getEventCollection()
3939
->getEvent(new EventPhrase($eventName, true))
@@ -46,7 +46,7 @@ public static function fire($eventName, array $args = null)
4646
* @param array|null $args The array of arguments to be passed to the handler
4747
* @return mixed|null The return value of the handler function
4848
*/
49-
public static function fireHandler($eventPhrase, array $args = null)
49+
public static function fireHandler($eventPhrase, array $args = array())
5050
{
5151
$eventPhrase = new EventPhrase($eventPhrase);
5252
$event = self::getEventCollection() ->getEvent($eventPhrase);

0 commit comments

Comments
 (0)