Is there a way to get the location (line+file) where a function/method was called?
eg) Instead of add_error ('abc', FILE, LINE), I could just call add_error ('abc'); Like trigger_error();