/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
rules
/
Php74
/
Guard
/
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php74/Guard
mkdir
upload
Name
Size
Mode
Actions
MakePropertyTypedGuard.php
791
0644
edit
dl
rm
PropertyTypeChangeGuard.php
2806
0644
edit
dl
rm
Edit:
/opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php74/Guard/MakePropertyTypedGuard.php
(791B)
<?php declare (strict_types=1); namespace Rector\Php74\Guard; use PhpParser\Node\Stmt\Property; use PHPStan\Reflection\ClassReflection; final class MakePropertyTypedGuard { /** * @readonly * @var \Rector\Php74\Guard\PropertyTypeChangeGuard */ private $propertyTypeChangeGuard; public function __construct(\Rector\Php74\Guard\PropertyTypeChangeGuard $propertyTypeChangeGuard) { $this->propertyTypeChangeGuard = $propertyTypeChangeGuard; } public function isLegal(Property $property, ClassReflection $classReflection, bool $inlinePublic = \true) : bool { if ($property->type !== null) { return \false; } return $this->propertyTypeChangeGuard->isLegal($property, $classReflection, $inlinePublic); } }
Save
cmd:
run