diff --git a/src/block/VanillaBlocks.php b/src/block/VanillaBlocks.php index ec3c5a494..c2216c5dd 100644 --- a/src/block/VanillaBlocks.php +++ b/src/block/VanillaBlocks.php @@ -585,6 +585,7 @@ final class VanillaBlocks{ /** * @return Block[] + * @phpstan-return array */ public static function getAll() : array{ //phpstan doesn't support generic traits yet :( diff --git a/src/entity/effect/VanillaEffects.php b/src/entity/effect/VanillaEffects.php index 249ce367c..04f7985da 100644 --- a/src/entity/effect/VanillaEffects.php +++ b/src/entity/effect/VanillaEffects.php @@ -101,6 +101,7 @@ final class VanillaEffects{ /** * @return Effect[] + * @phpstan-return array */ public static function getAll() : array{ //phpstan doesn't support generic traits yet :( diff --git a/src/item/VanillaItems.php b/src/item/VanillaItems.php index 98a4ba514..9bc537812 100644 --- a/src/item/VanillaItems.php +++ b/src/item/VanillaItems.php @@ -384,6 +384,7 @@ final class VanillaItems{ /** * @return Item[] + * @phpstan-return array */ public static function getAll() : array{ //phpstan doesn't support generic traits yet :( diff --git a/src/utils/EnumTrait.php b/src/utils/EnumTrait.php index 315561444..c9d24e0fc 100644 --- a/src/utils/EnumTrait.php +++ b/src/utils/EnumTrait.php @@ -48,6 +48,7 @@ trait EnumTrait{ * This is overridden to change the return typehint. * * @return self[] + * @phpstan-return array */ public static function getAll() : array{ //phpstan doesn't support generic traits yet :( diff --git a/src/utils/RegistryTrait.php b/src/utils/RegistryTrait.php index 989800ef0..776980599 100644 --- a/src/utils/RegistryTrait.php +++ b/src/utils/RegistryTrait.php @@ -29,7 +29,10 @@ use function mb_strtoupper; use function preg_match; trait RegistryTrait{ - /** @var object[] */ + /** + * @var object[] + * @phpstan-var array + */ private static $members = null; private static function verifyName(string $name) : void{ @@ -107,6 +110,7 @@ trait RegistryTrait{ /** * @return object[] + * @phpstan-return array */ private static function _registryGetAll() : array{ self::checkInit();