Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 14, 2024

@staabm staabm marked this pull request as ready for review December 14, 2024 10:17
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm staabm marked this pull request as draft December 14, 2024 10:42
@staabm staabm marked this pull request as ready for review December 14, 2024 10:56
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

'ReflectionClass::getReflectionConstants' => ['list<ReflectionClassConstant>'],
'ReflectionClass::getShortName' => ['string'],
'ReflectionClass::getStartLine' => ['int|false'],
'ReflectionClass::getStartLine' => ['positive-int|false'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 valid even with eval:

<?php eval('class A {}'); var_dump((new ReflectionClass(A::class))->getFileName()); var_dump((new ReflectionClass(A::class))->getStartLine()); 
@ondrejmirtes ondrejmirtes merged commit edc13ad into phpstan:1.12.x Dec 15, 2024
452 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants