?????????? ????????? - ??????????????? - /opt/cpanel/ea-wappspector/vendor/rector/rector/rules/TypeDeclaration/AlreadyAssignDetector/PropertyDefaultAssignDetector.php
???????
<?php declare (strict_types=1); namespace Rector\TypeDeclaration\AlreadyAssignDetector; use PhpParser\Node\Expr; use PhpParser\Node\Stmt\ClassLike; use PhpParser\Node\Stmt\Property; final class PropertyDefaultAssignDetector { public function detect(ClassLike $classLike, string $propertyName) : bool { $property = $classLike->getProperty($propertyName); if (!$property instanceof Property) { return \false; } return $property->props[0]->default instanceof Expr; } }
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????