dxw / whippet-server

Whippet Server launches a stand-alone web server for a specific WordPress installation. It makes WordPress easier to develop with, for example, by adding lots of debug information to the terminal without cluttering up or breaking your templates.
ISC License
80 stars 6 forks source link

Unhandled errors and warnings #57

Open dgmstuart opened 9 years ago

dgmstuart commented 9 years ago

Getting the following errors and warnings - not showing up in the main output - only when i use the --show-everything flag.

I feel like these kind of errors should be handled at a higher level so that I can see an error message that actually relates to my code rather than to whippet internals:

2015-09-29 11:55:36] Warning: preg_match() expects parameter 2 to be string, object given in /Users/dxwduncan/Dev/whippet-server/lib/whippet.class.php at line 638
[2015-09-29 11:55:36] Recoverable error: Object of class Closure could not be converted to string in /Users/dxwduncan/Dev/whippet-server/lib/whippet.class.php at line 642
[2015-09-29 11:55:36] Warning: Illegal offset type in isset or empty in /Users/dxwduncan/Dev/whippet-server/lib/callback-cache.class.php at line 76
[2015-09-29 11:55:36] Recoverable error: Object of class Closure could not be converted to string in /Users/dxwduncan/Dev/whippet-server/lib/whippet.class.php at line 647
[2015-09-29 11:55:36] Warning: Illegal offset type in /Users/dxwduncan/Dev/whippet-server/lib/callback-cache.class.php at line 68
[2015-09-29 11:55:36] Warning: Illegal offset type in /Users/dxwduncan/Dev/whippet-server/lib/callback-cache.class.php at line 70
[2015-09-29 11:55:36] Warning: Illegal offset type in isset or empty in /Users/dxwduncan/Dev/whippet-server/lib/callback-cache.class.php at line 76