diff --git a/src/Psalm/Internal/Stubs/CoreGenericClasses.php b/src/Psalm/Internal/Stubs/CoreGenericClasses.php index 99295dd90..5e63d0826 100644 --- a/src/Psalm/Internal/Stubs/CoreGenericClasses.php +++ b/src/Psalm/Internal/Stubs/CoreGenericClasses.php @@ -1151,3 +1151,21 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess public function getHash($object) {} } + +/** +* @template T as object +* +* @property-read class-string $name +*/ +class ReflectionClass implements Reflector { + + /** + * @var class-string + */ + public string $name; + + /** + * @param T|class-string + */ + public function __construct($argument) {} +}