Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented #8927307: Precedence handling implemented.
This should be the last commit for PHP_Depend's trait implementation.
- Loading branch information
1 parent
0e4d9b2
commit 84f612e
Showing
6 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/test/resources/files/Code/Trait/testGetAllMethodsExcludeTraitMethodWithPrecedence.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
trait testGetAllMethodsHandlesTraitMethodPrecedence | ||
{ | ||
use testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne { | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo::foo | ||
insteadof | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne; | ||
} | ||
use testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo { | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne::foo | ||
insteadof | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo; | ||
} | ||
} | ||
|
||
trait testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne | ||
{ | ||
function foo() {} | ||
function bar() {} | ||
} | ||
|
||
trait testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo | ||
{ | ||
function foo() {} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/test/resources/files/Code/Trait/testGetAllMethodsHandlesTraitMethodPrecedence.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
trait testGetAllMethodsHandlesTraitMethodPrecedence | ||
{ | ||
use testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne; | ||
use testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo { | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne::foo | ||
insteadof | ||
testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo; | ||
} | ||
} | ||
|
||
trait testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitOne | ||
{ | ||
function foo() {} | ||
function bar() {} | ||
} | ||
|
||
trait testGetAllMethodsHandlesTraitMethodPrecedenceUsedTraitTwo | ||
{ | ||
function foo() {} | ||
} |