|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule:
Collaboration diagram for ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule:Public Member Functions | |
| __construct (ReflectionProvider $reflectionProvider, \PHPStan\Rules\Generics\GenericAncestorsCheck $genericAncestorsCheck) | |
| getNodeType () | |
| processNode (Node $node, Scope $scope) | |
Protected Member Functions | |
| findInstanceCreation () | |
| findMethodUsages () | |
| getForbiddenClasses () | |
| getHumanReadableRuleName () | |
| getRelevantILIASVersion () | |
Protected Attributes | |
| ReflectionProvider | $reflectionProvider |
| PHPStan Rules Generics GenericAncestorsCheck | $genericAncestorsCheck |
Private Member Functions | |
| getClassAncestors (string $class_name) | |
| cacheAncestors ($class_name, array $ancestor_classes) | |
| instantiatesForbiddenClasses (Node $node) | |
| usesMethodsOfForbiddenClass (Node $node, Scope $scope) | |
Private Attributes | |
| array | $forbidden_classes = [] |
| array | $ancestor_cache = [] |
Definition at line 28 of file LegacyClassUsageRule.php.
| ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule::__construct | ( | ReflectionProvider | $reflectionProvider, |
| \PHPStan\Rules\Generics\GenericAncestorsCheck | $genericAncestorsCheck | ||
| ) |
Definition at line 35 of file LegacyClassUsageRule.php.
References ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\$forbidden_classes, ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\$genericAncestorsCheck, ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\$reflectionProvider, ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\cacheAncestors(), ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getClassAncestors(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getForbiddenClasses().
Here is the call graph for this function:
|
private |
Definition at line 76 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\instantiatesForbiddenClasses().
Here is the caller graph for this function:
|
protected |
Definition at line 86 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the caller graph for this function:
|
protected |
Reimplemented in ILIAS\Scripts\PHPStan\Rules\NoLegacyTabsUsagesRule, and ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule.
Definition at line 91 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the caller graph for this function:
|
private |
Definition at line 57 of file LegacyClassUsageRule.php.
References Vendor\Package\$e.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\instantiatesForbiddenClasses().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\Scripts\PHPStan\Rules\NoLegacyButtonUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyCheckboxListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyConfirmationUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyExplorerUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyLightboxUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyModalUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyNestedListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyPanelUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyProgressBarUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTableUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTabsUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTextHighlighterUsagesRule, and ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\usesMethodsOfForbiddenClass().
Here is the caller graph for this function:
|
abstractprotected |
Reimplemented in ILIAS\Scripts\PHPStan\Rules\NoLegacyButtonUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyCheckboxListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyConfirmationUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyExplorerUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyLightboxUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyModalUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyNestedListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyPanelUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyProgressBarUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTableUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTabsUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTextHighlighterUsagesRule, and ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the caller graph for this function:| ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule::getNodeType | ( | ) |
Definition at line 81 of file LegacyClassUsageRule.php.
|
abstractprotected |
Reimplemented in ILIAS\Scripts\PHPStan\Rules\NoLegacyButtonUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyCheckboxListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyConfirmationUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyExplorerUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyLightboxUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyModalUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyNestedListUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyPanelUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyProgressBarUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacySyntaxHighlighterUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTableUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTabsUsagesRule, ILIAS\Scripts\PHPStan\Rules\NoLegacyTextHighlighterUsagesRule, and ILIAS\Scripts\PHPStan\Rules\NoLegacyToolbarUsagesRule.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the caller graph for this function:
|
private |
Definition at line 102 of file LegacyClassUsageRule.php.
References ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\cacheAncestors(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getClassAncestors().
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Definition at line 131 of file LegacyClassUsageRule.php.
References $scope, ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\findInstanceCreation(), ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\findMethodUsages(), ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getHumanReadableRuleName(), ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getRelevantILIASVersion(), ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\instantiatesForbiddenClasses(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\usesMethodsOfForbiddenClass().
Here is the call graph for this function:
|
private |
Definition at line 119 of file LegacyClassUsageRule.php.
References ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\$forbidden_classes, $scope, and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\getForbiddenClasses().
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\processNode().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 33 of file LegacyClassUsageRule.php.
|
private |
Definition at line 32 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct(), and ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\usesMethodsOfForbiddenClass().
|
protected |
Definition at line 31 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct().
|
protected |
Definition at line 30 of file LegacyClassUsageRule.php.
Referenced by ILIAS\Scripts\PHPStan\Rules\LegacyClassUsageRule\__construct().