-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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
Conversation
} 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); |
There was a problem hiding this comment.
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 he has an exception for |
} 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()); |
There was a problem hiding this comment.
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
@stof all "Object"s should be covered now. Yeah I know he has such a mannerism ! |
@vicb none of the dumping tests modified ? this looks weird |
hmm, travis is indeed agreeing with me... |
I'll fix that tomorrow |
travis I hope you like it ! |
By adding "@throws InactiveScopeException" where applicable