-
Notifications
You must be signed in to change notification settings - Fork 11
Description
I wanna catch, trace and log errors, and hide them from users of my website, so I've put a lil' function at the top of my bootstrap script to turn Errors into ErrorExceptions, and it's been throwing Exceptions without mercy. A little digging later, and it looks like you've used them bloody @'s in your shorthand2xpath method.
I've been pondering over it for a little less than an hour now, and I can't really think of a solution that's particularly graceful. Pushing 7 empty elements on top of the array? God, no. Using isset in every ternary operation? Being forced through an entire season of an American sitcom (of your picking!) sounds more appealing. Predefine the array with array_fill? I guess, maybe?
But yeah, anyway, maybe you've got an idea.