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

Detect constants only used in tests #80

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 25, 2023

No description provided.

if ($declaringClass->getFileName() !== $classReflection->getFileName()) {
return [$declaringClass->getName() . '::' . $constantName];
if ($classReflection instanceof ClassReflection) {
if ($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.

the added case

@staabm staabm marked this pull request as ready for review July 25, 2023 09:55
@TomasVotruba
Copy link
Owner

Let's ship it 👍 Thank you 👏

@TomasVotruba TomasVotruba merged commit 0c9b5cb into TomasVotruba:main Jul 28, 2023
8 checks passed
@staabm staabm deleted the const-test branch July 28, 2023 13:20
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.

None yet

3 participants