| @@ -473,9 +473,9 @@ | ||
| 473 | 473 | * @throws Exception |
| 474 | 474 | * |
| 475 | 475 | * @since 10.1.19 |
| 476 | 476 | */ |
| 477 | - public static function getRouter($name = null, array $options = array()) | |
| 477 | + public function getRouter($name = null, array $options = array()) | |
| 478 | 478 | { |
| 479 | 479 | try |
| 480 | 480 | { |
| 481 | 481 | // load JRouter file |
| @@ -517,9 +517,9 @@ | ||
| 517 | 517 | * @return array An array of results from each function call, or null if no dispatcher is defined. |
| 518 | 518 | * |
| 519 | 519 | * @since 10.1.30 |
| 520 | 520 | */ |
| 521 | - public function triggerEvent($event, array $args = null) | |
| 521 | + public function triggerEvent($event, ?array $args = null) | |
| 522 | 522 | { |
| 523 | 523 | // proxy for JEventDispatcher |
| 524 | 524 | return JEventDispatcher::getInstance()->trigger($event, $args); |
| 525 | 525 | } |