-
Notifications
You must be signed in to change notification settings - Fork 653
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
[BUGFIX] Continue processing psalm-flow graph after first taint sink #5832
Conversation
tests/Config/ConfigTest.php
Outdated
/** @var \Psalm\Internal\Analyzer\ProjectAnalyzer */ | ||
protected $project_analyzer; | ||
|
||
public static function setUpBeforeClass() : void | ||
{ | ||
self::$config = new TestConfig(); | ||
new TestConfig(); |
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.
This looks like an unrelated bunch of changes slipped in.
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.
Nope, since everything inherits from TestCase
and there's now an instance property protected $config;
(non-static), these changes were necessary.
new TestConfig()
in the parts you pointed out was used to initialize their internal static state - self:$config
basically had no meaning at all and was never used/retrieved.
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.
However, I could have created a separate clean-up commit to make that more explicit.
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.
I'll revert those changes and introduce a new protected TestCase::$testConfig
variable instead...
Alright, now it's more tailored for the actual change... |
Thanks! |
Related: #5830