cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[Bug]Form::hasMessagesFor method return object instead of boolean

Open nexik opened this issue 12 years ago • 1 comments

Docs: http://docs.phalconphp.com/en/latest/api/Phalcon_Forms_Form.html

public boolean hasMessagesFor (unknown $name)
Check if messages were generated for a specific element

In reality it return Phalcon\Validation\Message\Group so it is the same behaviour as

public Phalcon\Validation\Message\Group [] getMessagesFor (unknown $name)

nexik avatar Jan 05 '14 23:01 nexik

Thanks

nexik avatar Jan 06 '14 22:01 nexik