Skip to content

Released version 2.3.6

Compare
Choose a tag to compare
@dg dg released this 09 Oct 17:50
· 585 commits to master since this release

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.