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

add generic type hint + helpful exception for ServicesTrait #415

Merged
merged 3 commits into from
Mar 9, 2024

Conversation

passchn
Copy link
Contributor

@passchn passchn commented Mar 9, 2024

Related Issue: #414

@codecov-commenter
Copy link

codecov-commenter commented Mar 9, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 70.86%. Comparing base (1c84005) to head (3dc1867).

Files Patch % Lines
src/Queue/ServicesTrait.php 40.00% 3 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #415      +/-   ##
============================================
- Coverage     70.94%   70.86%   -0.08%     
- Complexity      698      699       +1     
============================================
  Files            37       37              
  Lines          2433     2437       +4     
============================================
+ Hits           1726     1727       +1     
- Misses          707      710       +3     

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

@passchn
Copy link
Contributor Author

passchn commented Mar 9, 2024

Updated the type variable as OBJECT is misleading and the PHPStan docs use T:
https://phpstan.org/blog/generics-in-php-using-phpdocs#class-names

@dereuromark dereuromark changed the base branch from master to cake5-7.x March 9, 2024 14:45
@dereuromark dereuromark changed the base branch from cake5-7.x to master March 9, 2024 14:45
@dereuromark dereuromark merged commit 1622285 into dereuromark:master Mar 9, 2024
8 checks passed
@dereuromark
Copy link
Owner

We will have to backport this to 5.x branch for Patch release

dereuromark added a commit that referenced this pull request Mar 9, 2024
@dereuromark
Copy link
Owner

Backport done in 0ff769f

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