This is valid PHP 7.4 Syntax. Our systems are already running on PHP 7.4 but officially we still support 7.3. So this code was an oversight on our part. I would recommend to update to PHP 7.4 since we change the mandatory PHP version of translate5 to php 7.4 soon.
Hello
Previous version had those issues, I have fixed them manually, but yesterday update had rewrote them again. If I run
I get the following errors
Latest PHP Parse error: syntax error, unexpected 'editor_Plugins_PangeaMt_Servic' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/translate5/application/modules/editor/Plugins/PangeaMt/Init.php on line 34
/** * @var editor_Plugins_PangeaMt_Service */ protected editor_Plugins_PangeaMt_Service $service;I guess it should be
/** * @var editor_Plugins_PangeaMt_Service */ protected $service = 'editor_Plugins_PangeaMt_Service';PHP Parse error: syntax error, unexpected 'ZfExtended_Logger' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/translate5/application/modules/editor/Plugins/ModelFront/Init.php on line 38
FATAL: E1027 - PHP E_PARSE: syntax error, unexpected 'ZfExtended_Logger' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in core /var/www/translate5/application/modules/editor/Plugins/ModelFront/Init.php (38) by /database/forceimportall
<h1>Internal Server Error</h1>
/*** * @var ZfExtended_Logger */ protected ZfExtended_Logger $logger;I guess it should be
/*** * @var ZfExtended_Logger */ protected $logger = 'ZfExtended_Logger';