Bug Report
| Subject |
Details |
| Rector version |
last dev-main |
| Installed as |
composer dependency |
Minimal PHP Code Causing Issue
See https://getrector.com/demo/919b7847-fa96-4779-8160-37d400c35745
<?php
use PHPUnit\Framework\TestCase;
final class SomeHelper extends TestCase
{
}
Responsible rules
ParentTestClassConstructorRector
Description
Because in PHPUnit 11 the constructor of \PHPUnit\Framework\TestCase is marked final, applying this rule results in a PHPStan error 'Method SomeHelper::__construct() overrides @Final method PHPUnit\Framework\TestCase::__construct()
Could the rule detect if the parent method is final?
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/919b7847-fa96-4779-8160-37d400c35745
Responsible rules
ParentTestClassConstructorRectorDescription
Because in PHPUnit 11 the constructor of \PHPUnit\Framework\TestCase is marked final, applying this rule results in a PHPStan error 'Method SomeHelper::__construct() overrides @Final method PHPUnit\Framework\TestCase::__construct()
Could the rule detect if the parent method is final?