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 call to undefined getParent() method #1031

Merged

Conversation

JustMisha
Copy link

Type: bugfix
Breaking change: no

Fix PHP Fatal Error: Uncaught error: Call to undefined method PDepend\Source\AST\AST\ASTFunction::getParent() in phpmd\src\main\php\PHPMD\Rule\CleanCode\BooleanArgumentFlag.php:60 for files like:

<?php

function sum($a, $b)
{
    return ((int)$a + (int)$b);
}

Mikhail Trusov added 2 commits September 15, 2023 10:26
…\Source\AST\AST\ASTFunction::getParent() in phpmd\src\main\php\PHPMD\Rule\CleanCode\BooleanArgumentFlag.php:60 for files like:

<?php

function sum($a, $b)
{
    return ((int)$a + (int)$b);
}
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% 🎉

Comparison is base (63ca48a) 92.37% compared to head (4900081) 92.40%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1031      +/-   ##
============================================
+ Coverage     92.37%   92.40%   +0.02%     
- Complexity     1215     1221       +6     
============================================
  Files           110      110              
  Lines          3331     3343      +12     
============================================
+ Hits           3077     3089      +12     
  Misses          254      254              
Files Changed Coverage Δ
...n/php/PHPMD/Rule/CleanCode/BooleanArgumentFlag.php 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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

AJenbo
AJenbo previously approved these changes Sep 15, 2023
kylekatarnls
kylekatarnls previously approved these changes Sep 15, 2023
And restore blank lines
@kylekatarnls kylekatarnls dismissed stale reviews from AJenbo and themself via 2fee145 September 15, 2023 15:20
kylekatarnls
kylekatarnls previously approved these changes Sep 15, 2023
@kylekatarnls kylekatarnls merged commit 1db8e56 into phpmd:master Sep 15, 2023
31 checks passed
@ravage84 ravage84 added this to the 2.x (unspecific) milestone May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants