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

Param tag type ending in "[]" matches the "array" type hint #486

Merged
merged 1 commit into from Jun 6, 2012

Conversation

joncave
Copy link
Contributor

@joncave joncave commented Jun 5, 2012

Fixes #419.

/**
 * @param (Object|array)[] $actions Aray of Object or nested arrays
 */
public function addActions(array $actions);
/**
 * @param Foo[] $foo Array of foos
 */
public function bar(array $foo);

Shouldn't receive warnings about mismatching param tags and type hints.

mvriel added a commit that referenced this pull request Jun 6, 2012
Param tag type ending in "[]" matches the "array" type hint
@mvriel mvriel merged commit b63570e into phpDocumentor:develop Jun 6, 2012
@mvriel
Copy link
Member

mvriel commented Jun 6, 2012

Nothing to add. Super!

@joncave joncave deleted the issue-419 branch February 1, 2013 13:45
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

Successfully merging this pull request may close these issues.

Array containing multiple types and array typehint
2 participants