Файловый менеджер - Редактировать - /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Privatization/Guard/OverrideByParentClassGuard.php
Ðазад
<?php declare (strict_types=1); namespace Rector\Privatization\Guard; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\Class_; use PHPStan\Reflection\ReflectionProvider; /** * Verify whether Class_'s method or property allowed to be overridden by verify class parent or implements exists */ final class OverrideByParentClassGuard { /** * @readonly * @var \PHPStan\Reflection\ReflectionProvider */ private $reflectionProvider; public function __construct(ReflectionProvider $reflectionProvider) { $this->reflectionProvider = $reflectionProvider; } public function isLegal(Class_ $class) : bool { if ($class->extends instanceof FullyQualified && !$this->reflectionProvider->hasClass($class->extends->toString())) { return \false; } foreach ($class->implements as $implement) { if (!$this->reflectionProvider->hasClass($implement->toString())) { return \false; } } return \true; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0.01 |
proxy
|
phpinfo
|
ÐаÑтройка