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

Breadcrumb

  1. Drupal Core 11.1.x

DeprecatedScopeResolver.php

Namespace

PHPStan\Rules\Deprecations

File

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

View source
<?php

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

use PHPStan\Analyser\Scope;

/**
 * This is the interface for custom deprecated scope resolvers.
 *
 * To register it in the configuration file use the `phpstan.deprecations.deprecatedScopeResolver` service tag:
 *
 * ```
 * services:
 * 	-
 *		class: App\PHPStan\MyExtension
 *		tags:
 *			- phpstan.deprecations.deprecatedScopeResolver
 * ```
 *
 * @api
 */
interface DeprecatedScopeResolver {
    public function isScopeDeprecated(Scope $scope) : bool;

}

Interfaces

Title Deprecated Summary
DeprecatedScopeResolver This is the interface for custom deprecated scope resolvers.

API Navigation

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