Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DeprecatedScopeCheck.php

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\Internal
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal