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

Fix build method param types #481

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

kamil-tekiela
Copy link
Contributor

This is broken polymorphism as the type breaks contravariance. Actually, this method seems to break every rule of OOP. So this is just a small bandaid over the larger issue, which requires a little bit more work.

@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (d6e0d4c) 96.62% compared to head (bb7a7f6) 96.61%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #481      +/-   ##
============================================
- Coverage     96.62%   96.61%   -0.01%     
+ Complexity     2177     2176       -1     
============================================
  Files            66       66              
  Lines          5060     5058       -2     
============================================
- Hits           4889     4887       -2     
  Misses          171      171              
Impacted Files Coverage Δ
src/Components/Condition.php 100.00% <ø> (ø)
src/Components/ParameterDefinition.php 100.00% <ø> (ø)
src/Components/WithKeyword.php 76.47% <ø> (-2.48%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@williamdes williamdes left a comment

Choose a reason for hiding this comment

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

The code change looks okay

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
@MauricioFauth MauricioFauth merged commit f24633d into phpmyadmin:master Jul 26, 2023
12 checks passed
@MauricioFauth MauricioFauth self-assigned this Jul 26, 2023
@MauricioFauth MauricioFauth added this to the 6.0.0 milestone Jul 26, 2023
@kamil-tekiela kamil-tekiela deleted the Fix-build-param-types branch July 26, 2023 23:47
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.

3 participants