class DeprecatedScopeCheck
Hierarchy
- class \mglaman\PHPStanDrupal\Internal\DeprecatedScopeCheck
Expanded class hierarchy of DeprecatedScopeCheck
4 files declare their use of DeprecatedScopeCheck
- AccessDeprecatedConstant.php in vendor/
mglaman/ phpstan-drupal/ src/ Rules/ Deprecations/ AccessDeprecatedConstant.php - RequestStackGetMainRequestRule.php in vendor/
mglaman/ phpstan-drupal/ src/ Rules/ Drupal/ RequestStackGetMainRequestRule.php - SymfonyCmfRouteObjectInterfaceConstantsRule.php in vendor/
mglaman/ phpstan-drupal/ src/ Rules/ Deprecations/ SymfonyCmfRouteObjectInterfaceConstantsRule.php - SymfonyCmfRoutingInClassMethodSignatureRule.php in vendor/
mglaman/ phpstan-drupal/ src/ Rules/ Deprecations/ SymfonyCmfRoutingInClassMethodSignatureRule.php
File
-
vendor/
mglaman/ phpstan-drupal/ src/ Internal/ DeprecatedScopeCheck.php, line 7
Namespace
mglaman\PHPStanDrupal\InternalView source
final class DeprecatedScopeCheck {
public static function inDeprecatedScope(Scope $scope) : bool {
$class = $scope->getClassReflection();
if ($class !== null && $class->isDeprecated()) {
return true;
}
$trait = $scope->getTraitReflection();
if ($trait !== null && $trait->isDeprecated()) {
return true;
}
$function = $scope->getFunction();
return $function !== null && $function->isDeprecated()
->yes();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DeprecatedScopeCheck::inDeprecatedScope | public static | function |