Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: fix invalid annotation#186

Merged
dg merged 2 commits into
nette:masterfrom
vlastavesely:patch-1
Aug 28, 2017
Merged

docs: fix invalid annotation#186
dg merged 2 commits into
nette:masterfrom
vlastavesely:patch-1

Conversation

@vlastavesely

Copy link
Copy Markdown
Contributor

No description provided.


/**
* @return [string, bool]
* @return mixed[]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's much better to use array than mixed[] (because <type>[] is unfortunately not used consistently by PHP community and resolving it's meaning accurately requires quite complex heuristics).

Also you've dropped the information about the structure of the array. It would be better to do sth. like

/**
 * @return array [string, bool]
 */

@dg dg merged commit 7b771d3 into nette:master Aug 28, 2017
@vlastavesely vlastavesely deleted the patch-1 branch August 28, 2017 09:09
dg pushed a commit that referenced this pull request Sep 26, 2017
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.

3 participants