Warning: A non-numeric value encountered in C:\xampp\htdocs\Practical\index.php on line 22 code example
Example: non-numeric value encountered php
Not exactly the issue you had but the same error for people searching.
This happened to me when I spent too much time on JavaScript.
Coming back to PHP I concatenated two strings with "+" instead of "." and got that error.