DeprecatedScopeHelper.php
Namespace
PHPStan\Rules\DeprecationsFile
-
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 |