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

refactor: remove deprecation & thrown exception & constructor defaults #2375

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

DjordyKoert
Copy link
Collaborator

@DjordyKoert DjordyKoert commented Nov 1, 2024

Description

Refactor FormModelDescriber:

  • Remove default values from constructor params
    • The class is marked as internal so default params are not needed as we can rely on DI
  • Removed impossible deprecation $mediaTypes is not nullable
  • Removed impossible exception $formFactory could never be null

What type of PR is this? (check all applicable)

  • Bug Fix
  • Feature
  • Refactor
  • Deprecation
  • Breaking Change
  • Documentation Update
  • CI

Checklist

  • I have made corresponding changes to the documentation (docs/)
  • I have made corresponding changes to the changelog (CHANGELOG.md)

@DjordyKoert DjordyKoert force-pushed the refactor-FormModelDescriber branch from b755c15 to c9432e2 Compare November 1, 2024 14:13
@DjordyKoert DjordyKoert force-pushed the refactor-FormModelDescriber branch from c9432e2 to 8e0df09 Compare November 1, 2024 14:15
Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.46%. Comparing base (aa71130) to head (8e0df09).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2375      +/-   ##
==========================================
+ Coverage   89.37%   89.46%   +0.08%     
==========================================
  Files          77       77              
  Lines        2853     2848       -5     
==========================================
- Hits         2550     2548       -2     
+ Misses        303      300       -3     

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

@DjordyKoert DjordyKoert merged commit 1023c9d into master Nov 1, 2024
19 checks passed
@DjordyKoert DjordyKoert deleted the refactor-FormModelDescriber branch November 1, 2024 14:18
DjordyKoert added a commit that referenced this pull request Nov 7, 2024
#2375)

## Description

Refactor `FormModelDescriber`:
- Remove default values from constructor params
- The class is marked as internal so default params are not needed as we
can rely on DI
- Removed impossible deprecation `$mediaTypes` is not nullable
- Removed impossible exception `$formFactory` could never be `null`

## What type of PR is this? (check all applicable)
- [ ] Bug Fix
- [ ] Feature
- [x] Refactor
- [ ] Deprecation
- [ ] Breaking Change
- [ ] Documentation Update
- [ ] CI

## Checklist
- [x] I have made corresponding changes to the documentation (`docs/`)
- [x] I have made corresponding changes to the changelog
(`CHANGELOG.md`)

(cherry picked from commit 1023c9d)
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