github nette/utils v2.3.6
Released version 2.3.6

latest releases: v4.0.4, v4.0.3, v4.0.2...
8 years ago

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.

Don't miss a new utils release

NewReleases is sending notifications on new releases.