rector-phpunit icon indicating copy to clipboard operation
rector-phpunit copied to clipboard

[CodeQuality] Add parent setUp() method call

Open TomasVotruba opened this issue 1 year ago • 0 comments

While running PHPStan on newer PHPUnit, we get reporting of missing parent call in setup. It would be great to have a rule to handle this change:

protected function setUp(): void
{
+ parent::setUp();
}

It's often missed by accident, so it should be optional in code quality set

TomasVotruba avatar Sep 23 '24 13:09 TomasVotruba