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

Fixed incorrect type-hint for Repository Exceptions contracts #279

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Oct 9, 2023

Question Answer
JIRA issue n/a
Type improvement
Target Ibexa version v4.5+
BC breaks no

I've noticed by accident that type-hints on some contract-level services don't type-hint throwing Exception contracts, but rather implementation, which then causes incorrect PHPDoc block being generated by IDE for API usages.

There's more to it, but I focused on contracts for now.

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly (main for features, the oldest supported for bugs).
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review.

@alongosz alongosz requested a review from a team October 9, 2023 13:06
@konradoboza konradoboza requested a review from a team October 9, 2023 13:08
@sonarcloud
Copy link

sonarcloud bot commented Oct 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@alongosz alongosz merged commit dcca468 into 4.5 Oct 11, 2023
22 checks passed
@alongosz alongosz deleted the fix-non-contract-throws branch October 11, 2023 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants