New in Symfony 2.5: Better Error Messages for undefined Methods
February 3, 2014 • Published by Fabien Potencier
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Symfony 2.4 added great error messages for missing classes and functions. As of 2.5, Symfony will also help you debug undefined method calls.
Here is the kind of messages you will get in such cases:
"Attempted to call method "offsetFet" on class "SplObjectStorage" in foo.php line 12. Did you mean to call: "offsetSet", "offsetUnset", or "offsetGet"?"
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.