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

remove '\' character from Traversable #3679

Closed

Conversation

samsonasik
Copy link
Contributor

because already defined in 'use' statement

@@ -16,7 +16,7 @@
/**
* Create and return a Feed based on data provided.
*
* @param array|\Traversable $data
Copy link
Contributor

Choose a reason for hiding this comment

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

there is "use Traversable" at the top of the file, so it's correct ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

'use' statement can make docblock simpler. it can reduce deep namespace calling.

Copy link
Member

Choose a reason for hiding this comment

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

Calling for who. Remember that this is a comment and should not have runtime effects unless you use Reflection|Zend\Code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see a ton of simplify-ing docblock in zf2 source files because of already in use statement. /cc @weierophinney

Copy link
Member

Choose a reason for hiding this comment

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

@Maks3w declaring an import is a no-op if the code never hits it; as such,
declaring imports for classes only referenced in docblocks provides no
runtime hit, but does allow for better readability. This change is fine.

On Wednesday, February 6, 2013, Maks wrote:

In library/Zend/Feed/Writer/FeedFactory.php:

@@ -16,7 +16,7 @@
/**
* Create and return a Feed based on data provided.
*

  • \* @param  array|\Traversable $data
    

Calling for who. Remember that this is a comment and should not have
runtime effects unless you use Reflection|Zend\Code


Reply to this email directly or view it on GitHubhttps://github.com//pull/3679/files#r2906160.

Matthew Weier O'Phinney
matthew@weierophinney.net
http://mwop.net/

weierophinney added a commit that referenced this pull request Feb 6, 2013
@ghost ghost assigned weierophinney Feb 6, 2013
@samsonasik samsonasik deleted the fix/doc-traversable branch December 8, 2013 15:57
weierophinney added a commit to zendframework/zend-loader that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-loader that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-modulemanager that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-modulemanager that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-stdlib that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-paginator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-serializer that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-serializer that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-http that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-progressbar that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-progressbar that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-validator that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-log that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-view that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-feed that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-feed 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.

None yet

4 participants