===file===
<?php
class ParentClass {
    final public function locked(): void {}
}
class Child extends ParentClass {
    public function locked(): void {}
}
===expect===
FinalMethodOverridden: Method Child::locked() cannot override final method from ParentClass
