From 2ecf492642eca6b6144e6aa883451d71f68f5922 Mon Sep 17 00:00:00 2001 From: Dave Liddament Date: Mon, 1 Dec 2025 22:21:42 +0000 Subject: [PATCH] Fix ReflectionClassWithLazyObjects ReflectionClass stub I think this stub should match: https://github.com/phpstan/phpstan-src/blob/2.1.x/stubs/ReflectionClass.stub#L4C13-L4C23 See this commit for where the lazy object was introduced: https://github.com/phpstan/phpstan-src/commit/25ec5eb2db6474f95a0b9dcac1cca8210ea1a021#diff-34b8ba0664529e6e59d2c54a9a4cf3194fe2937582419c8d71516783474f4dc6 If you agree I think the same is needed for Enum. --- stubs/ReflectionClassWithLazyObjects.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/ReflectionClassWithLazyObjects.stub b/stubs/ReflectionClassWithLazyObjects.stub index 1a53ae8750..6280ff2baf 100644 --- a/stubs/ReflectionClassWithLazyObjects.stub +++ b/stubs/ReflectionClassWithLazyObjects.stub @@ -1,7 +1,7 @@