-
Notifications
You must be signed in to change notification settings - Fork 81
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
Undefined index: cep #28
Comments
@lemoslincoln provavelmente não está retornando o CEP na sua consulta. Tem que testar se existe esse índice antes de pegá-lo. |
@mprandot , |
@lemoslincoln Essa mensagem acontece pois o CEP não veio na resposta.. Efetue um teste antes de mascarar o "cep": if(isset($return['cep']))
$return['cep'] = Utils::mask($return['cep'], Mask::CEP); |
Pretendo atualizar a library para retornar um objeto (ao invés de um array). Vai resolver problemas assim |
Legal @jansenfelipe Eu entendo pouco, mas quero aprofundar para poder contribuir.. |
Estou recebendo a seguinte mensagem de erro..
Undefined index: cep in [path_arquivo] on line 17
{"cep":"","code":0}
A linha 17 é a linha do código abaixo.
$return['cep'] = Utils::mask($return['cep'], Mask::CEP);
Alguma idéia do que pode ser?
The text was updated successfully, but these errors were encountered: