I can translate _($variable) this way with gettext and there are no errors. So far, no problem. But it causes this problem in the scanner. How can I prevent this? I am getting this error
<!--StartFragment-->
<b>Fatal error</b>: Uncaught Exception: Invalid gettext function in Templates/default/header_breadcrumb.php:182. Some required arguments are not valid in C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\CodeScanner.php:148
--
| Stack trace:
| #0 C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\FunctionsHandlersTrait.php(15): Gettext\Scanner\CodeScanner->checkFunction(Object(Gettext\Scanner\ParsedFunction), 1)
| #1 [internal function]: Gettext\Scanner\PhpScanner->gettext(Object(Gettext\Scanner\ParsedFunction))
| #2 C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\CodeScanner.php(81): call_user_func(Array, Object(Gettext\Scanner\ParsedFunction))
| #3 C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\CodeScanner.php(67): Gettext\Scanner\CodeScanner->handleFunction(Object(Gettext\Scanner\ParsedFunction))
| #4 C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\Scanner.php(45): Gettext\Scanner\CodeScanner->scanString('<!doctype html>...', 'Templates/defau...')
| #5 C:\xampp\htdocs\testpanel\Templates\default\admin\language.php(41): Gettext\Scanner\Scanner->scanFile('Templates/defau...')
| #6 C:\xampp\htdocs\testpanel\index.php(2028): require('C:\\xampp\\htdocs...')
| #7 C:\xampp\htdocs\testpanel\index.php(2857): {closure}()
| #8 {main}
| thrown in <b>C:\xampp\htdocs\testpanel\vendor\gettext\gettext\src\Scanner\CodeScanner.php</b> on line <b>148</b><br />
<!--EndFragment-->
I can translate _($variable) this way with gettext and there are no errors. So far, no problem. But it causes this problem in the scanner. How can I prevent this? I am getting this error