You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Can't inherit abstract function Zend\Validator\Translator\TranslatorInterface::translate() (previously declared abstract in Zend\I18n\Translator\TranslatorInterface) in vendor/zendframework/zendframework/library/Zend/Mvc/I18n/Translator.php on line 16
I get the error when I run the code on mac using MAMP (php -v 5.4.17); however running the same code base on ubuntu with php -v 5.4.9 wont give any issues.
I fix the issue by commenting translate() in the Zend\I18n\Translator\TranslatorInterface.php. I assume, since its in the interface class and all the translator methods are already implemented, this (may) not effect the code.
The text was updated successfully, but these errors were encountered:
This is a known issue on the develop branch for pre-5.3 versions of PHP; @DASPRiD has indicated he'll have something this week to correct the situation.
Basically: we have two TranslatorInterface definitions, one in Zend\I18n and one in Zend\Validator. Zend\Mvc\I18n\Translator is implementing both -- something that works fine starting in 5.4, but which causes issues in 5.3. The solution will most likely be to do a proxy or decorator.
PHP Fatal error: Can't inherit abstract function Zend\Validator\Translator\TranslatorInterface::translate() (previously declared abstract in Zend\I18n\Translator\TranslatorInterface) in zendframework\library\Zend\Mvc\I18n\Translator.php on line 19
OS: Windows 7
PHP: PHP 5.4.12 (cli) (built: Feb 25 2013 00:29:22)
ZF2 Version: 2.3.1
I get this error
Can't inherit abstract function Zend\Validator\Translator\TranslatorInterface::translate() (previously declared abstract in Zend\I18n\Translator\TranslatorInterface) in vendor/zendframework/zendframework/library/Zend/Mvc/I18n/Translator.php on line 16
I get the error when I run the code on mac using MAMP (php -v 5.4.17); however running the same code base on ubuntu with php -v 5.4.9 wont give any issues.
I fix the issue by commenting translate() in the Zend\I18n\Translator\TranslatorInterface.php. I assume, since its in the interface class and all the translator methods are already implemented, this (may) not effect the code.
The text was updated successfully, but these errors were encountered: