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 some bugs reported by Infection #634

Merged
merged 3 commits into from
Jun 4, 2020
Merged

Conversation

kukulich
Copy link
Collaborator

@kukulich kukulich commented Jun 1, 2020

No description provided.

@@ -343,13 +343,13 @@ public function testSetType() : void
{
$classInfo = $this->reflector->reflect(Php7ParameterTypeDeclarations::class);
$methodInfo = $classInfo->getMethod('foo');
$parameterInfo = $methodInfo->getParameter('intParam');
$parameterInfo = $methodInfo->getParameter('forSetType');

$parameterInfo->setType('string');
Copy link
Member

Choose a reason for hiding this comment

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

These are solved by the memoizing parser being immutable. alternatively, we need to run them in separate processes.

By using separate parameters/methods/etc we are just moving the mine to some other location, where somebody else will trip it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Makes sense. Added @runInSeparateProcess

@kukulich kukulich force-pushed the infection branch 2 times, most recently from 840f506 to 8eb34a3 Compare June 1, 2020 12:40
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Ocramius Ocramius added this to the 4.4.0 milestone Jun 4, 2020
@Ocramius Ocramius added the bug label Jun 4, 2020
@Ocramius Ocramius self-assigned this Jun 4, 2020
@Ocramius Ocramius merged commit 48b8cb8 into Roave:master Jun 4, 2020
@kukulich kukulich deleted the infection branch June 4, 2020 19:25
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.

None yet

2 participants