-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore inaccessible class child nodes (#15)
* Ignore inaccessible class child nodes * Add config flag to include inaccessible class nodes * Add test for include-inaccessible-class-nodes config
- Loading branch information
Showing
6 changed files
with
171 additions
and
0 deletions.
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
73 changes: 73 additions & 0 deletions
73
test/files/classes-include-inaccessible-class-nodes.out.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,73 @@ | ||
<?php | ||
/** doc */ | ||
abstract class A extends \B implements \C | ||
{ | ||
/** doc */ | ||
protected const A = 'B'; | ||
|
||
/** doc */ | ||
private const B = 'C'; | ||
|
||
/** doc */ | ||
public static $a = 'a'; | ||
|
||
private static $b = 'b'; | ||
|
||
/** doc */ | ||
public static function b($a): void | ||
{ | ||
} | ||
|
||
/** doc */ | ||
abstract public function c($a): string; | ||
|
||
/** doc */ | ||
protected function d($a) : void | ||
{ | ||
} | ||
|
||
/** doc */ | ||
protected abstract function e($a) : string; | ||
|
||
/** doc */ | ||
private function f($a): void | ||
{ | ||
} | ||
} | ||
|
||
class D | ||
{ | ||
public function a(string $a): string | ||
{ | ||
} | ||
} | ||
|
||
final class E | ||
{ | ||
/** doc */ | ||
public $a = 'a'; | ||
|
||
/** doc */ | ||
protected $b = 'b'; | ||
|
||
/** doc */ | ||
public function a($a) : void | ||
{ | ||
} | ||
|
||
/** doc */ | ||
protected function b($a): void | ||
{ | ||
} | ||
} | ||
|
||
trait F | ||
{ | ||
/** doc */ | ||
private $a = 'a'; | ||
|
||
/** doc */ | ||
private function a($a) : void | ||
{ | ||
} | ||
} |
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