mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
src: PHP error in Phalcon port
Fatal error: Declaration of OPNsense\Base\ViewTranslator::query($translateKey, array $placeholders = Array): string must be compatible with Phalcon\Translate\Adapter\Gettext::query($index, $placeholders = NULL) in /usr/core/src/opnsense/mvc/app/library/OPNsense/Base/ViewTranslator.php on line 45
This commit is contained in:
parent
3a98ebb22f
commit
8bf56bf837
@ -36,7 +36,7 @@ use Phalcon\Translate\Adapter\Gettext;
|
||||
*/
|
||||
class ViewTranslator extends Gettext
|
||||
{
|
||||
public function query(string $translateKey, array $placeholders = []): string
|
||||
public function query($translateKey, $placeholders = null): string
|
||||
{
|
||||
$translateValue = parent::query($translateKey, $placeholders);
|
||||
/* gettext() embedded in JavaScript can cause syntax errors */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user