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 handling of traits #51

Merged
merged 2 commits into from
Sep 7, 2012
Merged

Fixed handling of traits #51

merged 2 commits into from
Sep 7, 2012

Conversation

bahulneel
Copy link

I was having some issues when trying to do mess detection of traits. This pull request is a (possibly) naive fix for that issue.

NB: this does depend on the following PR for pdepend https://github.com/manuelpichler/pdepend/pull/11

@aashley
Copy link

aashley commented Aug 1, 2012

I've tested this patch and it fixes PHPMD handling of Traits.

Without this patch I get the following error: PHP Catchable fatal error: Argument 1 passed to PHP_PMD_Node_Interface::__construct() must be an instance of PHP_Depend_Code_Interface, instance of PHP_Depend_Code_Trait given, called in /usr/share/php/PHP/PMD/Node/Method.php on line 134 and defined in /usr/share/php/PHP/PMD/Node/Interface.php on line 75

Full backtrace output at: http://www.adamashley.name/stuff/phpmd-output.txt

@camspiers
Copy link

I've tested this code, and can also confirm that it fixes the issues detailed in http://www.adamashley.name/stuff/phpmd-output.txt

manuelpichler added a commit that referenced this pull request Sep 7, 2012
@manuelpichler manuelpichler merged commit 22b523c into phpmd:master Sep 7, 2012
@ravage84 ravage84 added this to the 1.4.0 milestone Jul 28, 2019
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.

5 participants