Master Symfony2 fundamentals

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).

Discover the SensioLabs Support

Access to the SensioLabs Competency Center for an exclusive and tailor-made support on Symfony

Fabien Potencier
New in Symfony 2.5: Better Error Messages for undefined Methods
by Fabien Potencier – February 03, 2014 – 2 comments

Contributed by
Grégoire Pineau
in #9779.

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"?"

Comments RSS