Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nexik opened this issue Jan 5, 2014 · 1 comment
Closed

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

nexik opened this issue Jan 5, 2014 · 1 comment

Comments

@nexik
Copy link

nexik commented Jan 5, 2014

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
Copy link
Author

nexik commented Jan 6, 2014

Thanks

@nexik nexik closed this as completed Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants