Open
Description
After injecting FilesystemMap
into one of my services, PHPStan reports an error:
final class MyClass
{
public function __construct(FilesystemMap $filesystemMap)
{
// ...
}
// ...
}
Method MyClass::__construct() has parameter $filesystemMap with no value type specified in iterable type Knp\Bundle\GaufretteBundle\FilesystemMap.
A quick look at FilesystemMap
revealed: it's implementing \IteratorAggregate
but do not specify it's values.
I do think this is enough, but currently unable to test it:
/**
* @implements \IteratorAggregate<string, FilesystemMap>
*/
class FilesystemMap implements \IteratorAggregate, FilesystemMapInterface
Metadata
Metadata
Assignees
Labels
No labels