
When you are using phpstan and the Symfony Component Property Access and you would get this error:
Method YAY\Sync\Subject::initPath() has parameter $path with no value type specified in iterable type Symfony\Component\PropertyAccess\PropertyPath
Make sure that you
a) have the phpstan symfony extension installed
b) you are using the interface:
private function…