You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new block (in the same fashion as "backtrace" and "source code") which will suggest how to fix the reported PHP error message. The idea is to help solve these issues easier without having to look elsewhere.
For example if there is a PHP notice "Array to string conversion", the suggestion will be something like:
You are probably trying to print or concatenate an array variable. You must check the type of the variable to understand whether it is a scalar or an array (or an object): if (is_array($a)) {...
Add a new block (in the same fashion as "backtrace" and "source code") which will suggest how to fix the reported PHP error message. The idea is to help solve these issues easier without having to look elsewhere.
For example if there is a PHP notice "Array to string conversion", the suggestion will be something like:
In order to collect data for the suggestions, scan the PHP source code for
zend_error()
. Here is an example:Zend/zend_list.c
Put this in a separate class (\Wano\Display\Suggestions perhaps) and make it optional, enabled by default.
The text was updated successfully, but these errors were encountered: