Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Can't use function return value in write context in #119

Closed
ghost opened this issue Nov 19, 2015 · 2 comments
Closed

Fatal error: Can't use function return value in write context in #119

ghost opened this issue Nov 19, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 19, 2015

Fatal error: Can't use function return value in write context in correios/app/code/community/PedroTeixeira/Correios/Model/Sro.php 116
Erro parece estar ocorrendo por causa do "trim", removi todos e o erro parou de ocorrer.
PHP V 5.3.29

@ghost ghost changed the title Fatal error: Can't use function return value in write context in correios/app/code/community/PedroTeixeira/Correios/Model/Sro.php 116 Fatal error: Can't use function return value in write context in Nov 19, 2015
@jarjar123
Copy link
Contributor

Realmente, em algumas versões, a função empty do PHP deixa de aceitar qualquer coisa, exceto variáveis. O que faz todo sentido.
(apesar de que testei no PHP 5.5.3, e não apresentou erros)
Provavelmente está também relacionado ao error_reporting do PHP.
Mas uma correção aqui seria muito bem vinda.

@pedro-teixeira
Copy link
Owner

Corrigido nessa PR: #128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants