Released version 2.3.6
ObjectMixin: added warning when method-getter is used by mistake (for getters without parameters) (BC break)
Note: This release will trigger warning Did you forgot parentheses?
when you call a method without parentheses, i.e. foreach ($form–>getErrors as $error)
.
This notation is also used to create a callback. If you really want to create a callback, i.e. parentheses have not been forgotten and they are missing intentionally, replace this notation with a native PHP callback, for example [$form, 'getErrors']
. Alternatively in PHP 5.3 you can use shutup operator: @$form->getErrors
.
For the details you can have a look at the diff.