Skip to content

Commit

Permalink
allow multiple identical methods from trait, if they are abstract.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Lefebvre authored and Raphhh committed May 24, 2014
1 parent d0ed15c commit 45ab1d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/php/PDepend/Source/AST/AbstractASTType.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@ protected function getTraitMethods()

foreach ($uses as $use) {
foreach ($use->getAllMethods() as $method) {

if ($method->isAbstract()) {
continue;
}

foreach ($uses as $use2) {
if ($use2->hasExcludeFor($method)) {
continue 2;
Expand Down

0 comments on commit 45ab1d3

Please sign in to comment.