As I know I can't define array of class as function argument.
Like:
someFunc(someClass[] $some) {}
But I get PhpStorm warning about wrong argument when pass the array of class items. Can someone explain to me this warning?
Example of my code:
public function getContent(Item $item)
{
...
}
// $items is items array of class Item
$content = getContent($items)