Skip to content

Commit

Permalink
type hinting $args
Browse files Browse the repository at this point in the history
since it will be sent to Action::execute(...)
  • Loading branch information
maks feltrin committed Apr 30, 2016
1 parent 13c61ba commit 2cf1153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/system/engine/event.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function removeAction($trigger, $route) {
}
}

public function trigger($event, $args = array()) {
public function trigger($event, array $args = array()) {
foreach ($this->data as $trigger => $actions) {
if (preg_match('/^' . str_replace(array('\*', '\?'), array('.*', '.'), preg_quote($trigger, '/')) . '/', $event)) {
foreach ($actions as $action) {
Expand Down

0 comments on commit 2cf1153

Please sign in to comment.