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

Skip to content

[2.3] [DI] Improve the generated PHPDoc of the dumped PHP container #6846

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

Closed
wants to merge 2 commits into from

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Jan 23, 2013

By adding "@throws InactiveScopeException" where applicable

} elseif ($class = $definition->getClass()) {
$return = sprintf("@return %s A %s instance.", 0 === strpos($class, '%') ? 'Object' : $class, $class);
$return[] = sprintf("@return %s A %s instance.", 0 === strpos($class, '%') ? 'Object' : $class, $class);
Copy link
Member

Choose a reason for hiding this comment

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

you should improve it here too. Native types should be lowercase, so it should be object

@vicb
Copy link
Contributor Author

vicb commented Jan 23, 2013

thanks @stof

Native types should be lowercase

Never say that to @fabpot :)

@stof
Copy link
Member

stof commented Jan 23, 2013

@vicb he has an exception for Boolean (and explained why) but the reason cannot be applied to object

} elseif ($definition->getFactoryService()) {
$return = sprintf('@return Object An instance returned by %s::%s().', $definition->getFactoryService(), $definition->getFactoryMethod());
$return[] = sprintf('@return Object An instance returned by %s::%s().', $definition->getFactoryService(), $definition->getFactoryMethod());
Copy link
Member

Choose a reason for hiding this comment

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

Actually, the @return object also applies for these

By adding "@throws InactiveScopeException" where applicable
@vicb
Copy link
Contributor Author

vicb commented Jan 23, 2013

@stof all "Object"s should be covered now. Yeah I know he has such a mannerism !

@stof
Copy link
Member

stof commented Jan 23, 2013

@vicb none of the dumping tests modified ? this looks weird

@stof
Copy link
Member

stof commented Jan 23, 2013

hmm, travis is indeed agreeing with me...

@vicb
Copy link
Contributor Author

vicb commented Jan 23, 2013

I'll fix that tomorrow

@vicb
Copy link
Contributor Author

vicb commented Jan 24, 2013

travis I hope you like it !

@fabpot fabpot closed this in 6b6ccbb Mar 6, 2013
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