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

Fix Sanitization class to deal with null values #112

Merged

Conversation

nerijunior
Copy link

@nerijunior nerijunior commented Jan 28, 2021

O título do PR é auto explicativo. Testando no Laravel 8 e recebendo o campo em branco, o preg_replace falha porque não é string|array e sim null.

@vicentimartins
Copy link
Collaborator

@nerijunior é possível add testes ao seu PR? Sua solução parece funcionar bem, mas seria muito bom ter teste garantindo sua contrib.

@nerijunior
Copy link
Author

nerijunior commented Apr 19, 2021

vou adicionar!

@nerijunior nerijunior force-pushed the fix/sanitization-accepting-nulls branch from f997f12 to 50bf298 Compare April 20, 2021 00:29
@nerijunior
Copy link
Author

nerijunior commented Apr 20, 2021

@vicentimartins os testes estão feitos, o problema é que o CI não vai passar enquanto o PR #108 não foi aceito.

@vicentimartins
Copy link
Collaborator

@nerijunior muito bom Neri, obg por add o teste.

O #108 vai atualizar a versão do PHP para a lib, então sua checagem vai passar tranquilamente.

@nerijunior nerijunior force-pushed the fix/sanitization-accepting-nulls branch from 50bf298 to d57c8e9 Compare April 22, 2021 16:56
@vicentimartins vicentimartins merged commit ef0ba8f into geekcom:master Apr 22, 2021
@nerijunior nerijunior deleted the fix/sanitization-accepting-nulls branch May 18, 2021 17:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants