Skip to content

Conversation

@ondrejmirtes
Copy link
Contributor

Sorry for the mistake, I didn't notice that the test does not run :/

@Ocramius
Copy link
Member

Ocramius commented Feb 4, 2017

@ondrejmirtes shit happens, no need to be sorry :-)

@Ocramius Ocramius added the Bug label Feb 4, 2017
@Ocramius Ocramius self-assigned this Feb 4, 2017
@Ocramius Ocramius added this to the 2.8.0 milestone Feb 4, 2017
public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, array $parameters, $isVoidMethod)
{
$returnedValue = $isVoidMethod ? 'INNER VALUE FROM ' . $method : null;
$returnedValue = !$isVoidMethod ? 'INNER VALUE FROM ' . $method : null;
Copy link
Member

Choose a reason for hiding this comment

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

Please just invert the ternary - adding a boolean negation just makes it more confusing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Ocramius Done!

@Ocramius
Copy link
Member

Ocramius commented Feb 4, 2017

👍

@Ocramius Ocramius merged commit fe32728 into doctrine:master Feb 4, 2017
@Ocramius
Copy link
Member

Linking #722

@Ocramius Ocramius changed the title Fixed ObjectManagerDecoratorTest (closes #772) Fixed ObjectManagerDecoratorTest, which wasn't considering void hints Jul 22, 2017
@Ocramius Ocramius changed the title Fixed ObjectManagerDecoratorTest, which wasn't considering void hints #772 Fixed ObjectManagerDecoratorTest, which wasn't considering void hints Jul 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants