Bug report
Code snippet that reproduces the problem
https://phpstan.org/r/07963c2f-f876-48b9-bc8b-e1f9a7448c00
Expected output
An error should be reported on line 35, because array<WorldProviderEntry<WorldProvider>> cannot accept WorldProviderEntry<T of WorldProvider>. The additional code at the end provides reasoning why.
Footnote
I guess this should be allowed if template-covariant was used on the WorldProviderManagerEntry class?
Bug report
Code snippet that reproduces the problem
https://phpstan.org/r/07963c2f-f876-48b9-bc8b-e1f9a7448c00
Expected output
An error should be reported on line 35, because
array<WorldProviderEntry<WorldProvider>>cannot acceptWorldProviderEntry<T of WorldProvider>. The additional code at the end provides reasoning why.Footnote
I guess this should be allowed if template-covariant was used on the
WorldProviderManagerEntryclass?