Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Method annotations of Zend\Validator\Hostname constructor #4303

Merged

Conversation

localheinz
Copy link
Member

Method annotations of Zend\Validator\Hostname constructor are out of sync.

@micheh
Copy link
Contributor

micheh commented Apr 24, 2013

The annotations may not be out of sync, as the constructor is overloaded and can be called with the indicated parameters.

@prolic
Copy link
Contributor

prolic commented Apr 27, 2013

agree with @micheh

@localheinz
Copy link
Member Author

Then at least the names of the parameters should reflect the keys of the options array to make it more obvious what the parameters are intended for.

Updating the PR in a minute.

- Revert changes applied with 3389ae3
- Update names of parameters to reflect keys used in option array
- Use int instead of integer for type
* @param int $allow OPTIONAL Set what types of hostname to allow (default ALLOW_DNS)
* @param bool $useIdnCheck OPTIONAL Set whether IDN domains are validated (default true)
* @param bool $useTldCheck Set whether the TLD element of a hostname is validated (default true)
* @param Ip $ipValidator OPTIONAL
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the alignment of annotations along the way.

@ghost ghost assigned weierophinney Apr 29, 2013
weierophinney added a commit that referenced this pull request Apr 29, 2013
Method annotations of Zend\Validator\Hostname constructor

Conflicts:
	library/Zend/Validator/Hostname.php
weierophinney added a commit that referenced this pull request Apr 29, 2013
@weierophinney weierophinney merged commit 498efa4 into zendframework:develop Apr 29, 2013
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
…otfix/method-annotations

Method annotations of Zend\Validator\Hostname constructor

Conflicts:
	library/Zend/Validator/Hostname.php
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants