-
-
Notifications
You must be signed in to change notification settings - Fork 931
Closed
Description
Support question
Following example given: https://phpstan.org/r/dec561c6-72a9-434b-9a6d-2032b3b13ae3 (simplified!)
Or have a look here: https://github.com/shopware/platform/blob/master/src/Core/Framework/DataAbstractionLayer/Search/EntitySearchResult.php
https://github.com/shopware/platform/blob/master/src/Core/Framework/Struct/Collection.php
PHPStan complains about "Unsafe usage of new static()" in the Collection
on line 157
I don't really have an idea, how to fix that. I can't make the class final
as many other classes extend from Collection
. Also I could not make the constructor final
as e.g. the EntitySearchResult
is using more constructor parameter.
Wish you all happy holidays! 🎄 🎆
Metadata
Metadata
Assignees
Labels
No labels