zendframework / zend-i18n

I18n component from Zend Framework
BSD 3-Clause "New" or "Revised" License
65 stars 49 forks source link

Warning for illegal offset type when no value are set to be translated in form element #32

Closed jguittard closed 8 years ago

jguittard commented 8 years ago

i.e., when a button is defined in a form factory without any label or label set to '' (empty string), this warning is raised: Warning: Illegal offset type in zendframework/zend-i18n/src/Translator/Translator.php on line 443 Setting a value of ' ' (single space) fixes the issue