文件操作 - MakePropertyTypedGuard.php
返回文件管理
返回主菜单
删除本文件
文件: /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/Php74/Guard/MakePropertyTypedGuard.php
编辑文件内容
<?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); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件