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

Fixed the phpdoc in the DependencyInjection component #5467

Merged
merged 1 commit into from Sep 8, 2012

Conversation

stof
Copy link
Member

@stof stof commented Sep 7, 2012

I was sick of having a warning in my IDE each time I used DefinitionDecorator because of an invalid phpdoc in the constructor, so I took some time and fixed it in the whole DI component.

@stof
Copy link
Member Author

stof commented Sep 7, 2012

The travis failure is unrelated. It is all about some intl failures.

@@ -93,8 +93,6 @@ private function parseParameters(SimpleXMLElement $xml, $file)
*
* @param SimpleXMLElement $xml
* @param string $file
*
* @return void

Choose a reason for hiding this comment

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

Are you sure?

    if (false === $imports = $xml->xpath('//container:imports/container:import')) {
        return;
    }

Copy link
Member Author

Choose a reason for hiding this comment

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

It does not return anything. And Symfony does not use @return void in such cases: http://symfony.com/doc/current/contributing/code/standards.html#documentation

@eventhorizonpl
Copy link

Reviewed-by: Michal Piotrowski michal@eventhorizon.pl

@pborreli
Copy link
Contributor

pborreli commented Sep 8, 2012

👍

fabpot added a commit that referenced this pull request Sep 8, 2012
Commits
-------

05f7f78 Fixed the phpdoc in the DependencyInjection component

Discussion
----------

Fixed the phpdoc in the DependencyInjection component

I was sick of having a warning in my IDE each time I used DefinitionDecorator because of an invalid phpdoc in the constructor, so I took some time and fixed it in the whole DI component.

---------------------------------------------------------------------------

by stof at 2012-09-07T23:09:04Z

The travis failure is unrelated. It is all about some intl failures.

---------------------------------------------------------------------------

by eventhorizonpl at 2012-09-07T23:37:04Z

Reviewed-by: Michal Piotrowski <michal@eventhorizon.pl>

---------------------------------------------------------------------------

by pborreli at 2012-09-08T01:42:26Z

:+1:
@fabpot fabpot merged commit 05f7f78 into symfony:2.0 Sep 8, 2012
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.

None yet

4 participants