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

Breadcrumb

  1. Drupal Core 11.1.x

DeprecatedScopeHelper.php

Namespace

PHPStan\Rules\Deprecations

File

vendor/phpstan/phpstan-deprecation-rules/src/Rules/Deprecations/DeprecatedScopeHelper.php

View source
<?php

declare (strict_types=1);
namespace PHPStan\Rules\Deprecations;

use PHPStan\Analyser\Scope;
class DeprecatedScopeHelper {
    
    /** @var DeprecatedScopeResolver[]  */
    private $resolvers;
    
    /**
     * @param DeprecatedScopeResolver[] $checkers
     */
    public function __construct(array $checkers) {
        $this->resolvers = $checkers;
    }
    public function isScopeDeprecated(Scope $scope) : bool {
        foreach ($this->resolvers as $checker) {
            if ($checker->isScopeDeprecated($scope)) {
                return true;
            }
        }
        return false;
    }

}

Classes

Title Deprecated Summary
DeprecatedScopeHelper

API Navigation

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