Skip to content

MIR0010

ParentNotFound

parent:: is used inside a class that does not extend any other class. There is no parent to resolve the reference to.

<?php
class Foo {
public function bar(): string {
return parent::bar(); // Foo has no parent class
}
}

Add an extends clause to the class, or remove the parent:: call and implement the logic directly.