Closed rvanlaak closed 3 years ago
The latest version of PHPStan does check for generics. In other words, for traversables it also does static code detection of their items.
The ItemInterface does extend ItemListInterface and thereby is a traversable. This is incorrect because it also can be a single item.
ItemInterface
ItemListInterface
What is needed / what would conflict when removing the item interface from extending the list interface?
The latest version of PHPStan does check for generics. In other words, for traversables it also does static code detection of their items.
The
ItemInterface
does extendItemListInterface
and thereby is a traversable. This is incorrect because it also can be a single item.What is needed / what would conflict when removing the item interface from extending the list interface?