Skip to content

ensure definitions dump#484

Merged
mnapoli merged 3 commits intoPHP-DI:masterfrom
juliangut:definitions_dump
Apr 29, 2017
Merged

ensure definitions dump#484
mnapoli merged 3 commits intoPHP-DI:masterfrom
juliangut:definitions_dump

Conversation

@juliangut
Copy link
Copy Markdown
Contributor

Covers #478 and #480

Copy link
Copy Markdown
Member

@mnapoli mnapoli left a comment

Choose a reason for hiding this comment

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

Thanks, could you also add a line in the changelog?


/**
* {@inheritdoc}
*/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The inheritdoc are not necessary as they are the default, I've been removing them in the codebase since they only make the code more complex. Could you remove them?

* @author Matthieu Napoli <[email protected]>
*/
class DecoratorDefinition extends FactoryDefinition implements Definition, HasSubDefinition
class DecoratorDefinition extends FactoryDefinition implements HasSubDefinition
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I like the fact that interfaces implemented are explicitly mentioned (else you have to navigate through plenty of files to get to the top interface). Could you revert that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tend to go the other way around, phpstorm's EA extended plugin warns me if I'm missing interface methods


/**
* @param object $instance
* @param ObjectDefinition $objectDefinition
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is redundant with the code, this doesn't need to be documented.

public function __toString()
{
return 'Instance';
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ha nice catch ^^

}

/**
* {@inheritdoc}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one should stay because the documentation is really inherited :)

@juliangut
Copy link
Copy Markdown
Contributor Author

I'l try to make the changes and add that line to changelog ASAP

@mnapoli
Copy link
Copy Markdown
Member

mnapoli commented Apr 29, 2017

Thanks!

@mnapoli mnapoli merged commit fc4c54e into PHP-DI:master Apr 29, 2017
@juliangut juliangut deleted the definitions_dump branch June 15, 2017 21:34
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.

2 participants