| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikWP - Libraries |
| 4 | 4 | * @subpackage adapter.application |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -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 | } |