-
-
Notifications
You must be signed in to change notification settings - Fork 737
Open
Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Minimal PHP Code Causing Issue
<?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?