Improve type info for RegistryTrait::getAll() and its users

This commit is contained in:
Dylan K. Taylor
2022-09-02 19:57:22 +01:00
parent 6dd5fec4ea
commit 88eafdd614
5 changed files with 9 additions and 1 deletions

View File

@ -384,6 +384,7 @@ final class VanillaItems{
/**
* @return Item[]
* @phpstan-return array<string, Item>
*/
public static function getAll() : array{
//phpstan doesn't support generic traits yet :(