diff --git a/stubs/Php81.phpstub b/stubs/Php81.phpstub index 984fef860..547ee0fa3 100644 --- a/stubs/Php81.phpstub +++ b/stubs/Php81.phpstub @@ -57,7 +57,7 @@ namespace { /** @psalm-immutable */ class ReflectionIntersectionType extends ReflectionType { - /** @return non-empty-list */ + /** @return non-empty-list */ public function getTypes(): array {} /** @return false */ diff --git a/stubs/Php82.phpstub b/stubs/Php82.phpstub index fd153f3e5..5ac5ee5f3 100644 --- a/stubs/Php82.phpstub +++ b/stubs/Php82.phpstub @@ -4,4 +4,10 @@ namespace { /** @psalm-pure */ public function isReadOnly(): bool {} } + + /** @psalm-immutable */ + class ReflectionUnionType extends ReflectionType { + /** @return non-empty-list */ + public function getTypes(): array {} + } }