laravel - has() function on empty ErrorBag returns different boolean result depending on environment -


in laravel app, have discrepancy on output of following line:

$errors->has(); 

depending on environment; returns false locally, true on stage , prod.

i dumped defined vars , same empty array in both:

"errors" => viewerrorbag {#170 ▼   #bags: [] } 

i $errors->count(); returns 0 in both envs.

what reason?


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -