http://stackoverflow.com/questions/42044127/warning-a-non-numeric-value-encountered
remove the count() and dd the result. An invalid number used to be cast to zero now throws a warning.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I'm getting exception "A non-numeric value encountered" on the link where I've code something like
$data = $d->events()->where('event_type', 'something')->count();
I had this thing working OK with PHP 7.0 but upgrading to PHP 7.1 I started getting this exception
I've now Laravel - 5.4.15
Please or to participate in this conversation.