try { $matrix = Query::take(\"SELECT moo\"); //this makes 0 sense while($row = mysqli_fetch_array($matrix, MYSQL_BOTH)) //and thus this line should be
In PHP a warning is not an exception. Generally the best practice would be to use defensive coding to make sure the result is what you expect it to be.