Skip to content

Commit 2ecf492

Browse files
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: 25ec5eb#diff-34b8ba0664529e6e59d2c54a9a4cf3194fe2937582419c8d71516783474f4dc6 If you agree I think the same is needed for Enum.
1 parent 5e42581 commit 2ecf492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/ReflectionClassWithLazyObjects.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* @template T of object
4+
* @template-covariant T of object
55
*/
66
class ReflectionClass
77
{

0 commit comments

Comments
 (0)