It seems like $em can also be of type null; however, parameter $em of Zenstruck\Foundry\Bundle...Property::__construct() does only seem to accept Doctrine\ORM\EntityManagerInterface, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
20
$this->property = new Property(/** @scrutinizer ignore-type */ $em);
Loading history...
21
}
22
23
/**
24
* @test
25
* @dataProvider doctrineTypes
26
*/
27
public function generated_faker_method(string $doctrineType)
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.