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

Ignore PHPStan assuming incorrect return type in AutomaticQueryBuilder #367

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhvis
Copy link
Contributor

@mhvis mhvis commented Dec 27, 2024

PHPStan uses the return type specified in the PHPDoc of the interface \Doctrine\Persistence\Mapping\ClassMetadata (which makes sense).

However, the implementation at \Doctrine\ORM\Mapping\ClassMetadata may return null.

I don't know the proper way to fix this so I just ignored it here. (But feel free to reject this PR.)

PHPStan uses the return type specified in the PHPDoc of the interface
\Doctrine\Persistence\Mapping\ClassMetadata (which makes sense).

However, the implementation at \Doctrine\ORM\Mapping\ClassMetadata may
return null.

I don't know the proper way to fix this so I just ignored it here. (But
feel free to reject this PR.)
Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.70%. Comparing base (259ad04) to head (9b21782).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #367   +/-   ##
=======================================
  Coverage   94.70%   94.70%           
=======================================
  Files          37       37           
  Lines        1000     1000           
=======================================
  Hits          947      947           
  Misses         53       53           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mhvis
Copy link
Contributor Author

mhvis commented Dec 27, 2024

I'm not sure why the pipeline still fails here. I can't replicate it locally. So I won't look into it any further.

@mhvis mhvis marked this pull request as draft December 27, 2024 13:46
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.

1 participant