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

Revert return to null if manager is not found; add bool to throw exce… #644

Merged

Conversation

TomHAnderson
Copy link
Contributor

…ption instead

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.62%. Comparing base (a245230) to head (30b6b16).
Report is 6 commits behind head on 3.0.x.

Additional details and impacted files
@@             Coverage Diff              @@
##              3.0.x     #644      +/-   ##
============================================
+ Coverage     79.60%   79.62%   +0.02%     
- Complexity      492      493       +1     
============================================
  Files            73       73              
  Lines          1618     1620       +2     
============================================
+ Hits           1288     1290       +2     
  Misses          330      330              

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

@@ -302,7 +302,7 @@ public function getRepository(string $persistentObject, string|null $persistentM
*
* @param class-string $className A persistent object class name.

Choose a reason for hiding this comment

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

We could add @return annotation, so static tools (e.g. phpstan) will understand that return type depends on argument

* @return ($throwExceptionIfNotFound is true ? ObjectManager : ObjectManager|null)

@TomHAnderson TomHAnderson merged commit 04915c1 into laravel-doctrine:3.0.x Nov 1, 2024
12 checks passed
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