Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix union-type handling in PublicStaticPropertyFetchCollector #121

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 15, 2024

analog #120

if ($node->class->toString() === 'self') {
// self fetch is allowed
$classReflection = $scope->getClassReflection();
if ($classReflection instanceof ClassReflection && $this->classTypeDetector->isTestClass($classReflection)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this collector was missing the "test-only" detection part

@staabm staabm marked this pull request as ready for review July 15, 2024 11:56
@staabm
Copy link
Contributor Author

staabm commented Jul 15, 2024

should be good to go

@TomasVotruba TomasVotruba merged commit 5da0ca6 into TomasVotruba:main Jul 15, 2024
8 checks passed
@TomasVotruba
Copy link
Owner

Thanks 😊👍

@staabm staabm deleted the static branch July 15, 2024 12:05
@staabm
Copy link
Contributor Author

staabm commented Jul 15, 2024

would be great to get a new release. I have no further known problems to work on :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants