From b736b132862113b8cad439736282ef82af8eebb1 Mon Sep 17 00:00:00 2001 From: Wruczek Date: Thu, 8 Oct 2020 06:28:26 +0200 Subject: [PATCH] Fix functions __ and __get having invalid parameter types --- src/private/php/load.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/private/php/load.php b/src/private/php/load.php index 7e5cb7a..737267b 100644 --- a/src/private/php/load.php +++ b/src/private/php/load.php @@ -65,14 +65,14 @@ if(!isset($_SESSION["userlanguageid"])) { /** * Shortcut to translate and output the result */ - function __(string $identifier, array $args = []) { - echo __get($identifier, $args); + function __(string $identifier, $args = [], bool $nullOnError = false) { + echo __get($identifier, $args, $nullOnError); } /** * Shortcut to translate and return the result */ - function __get(string $identifier, array $args = []) { + function __get(string $identifier, $args = [], bool $nullOnError = false) { try { return LanguageUtils::i()->translate($identifier, $args); } catch (\Exception $e) {