-
Notifications
You must be signed in to change notification settings - Fork 129
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
Conversation
@@ -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'); |
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.
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.
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.
Makes sense. Added @runInSeparateProcess
840f506
to
8eb34a3
Compare
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.
LGTM 👍
No description provided.