File manager - Edit - /var/www/payraty/helpdesk/vendor/rector/rector/packages/BetterPhpDocParser/PhpDocNodeVisitor/ChangedPhpDocNodeVisitor.php
Back
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\PhpDocNodeVisitor; use PHPStan\PhpDocParser\Ast\Node; use Rector\BetterPhpDocParser\ValueObject\PhpDocAttributeKey; use RectorPrefix202208\Symplify\Astral\PhpDocParser\PhpDocNodeVisitor\AbstractPhpDocNodeVisitor; final class ChangedPhpDocNodeVisitor extends AbstractPhpDocNodeVisitor { /** * @var bool */ private $hasChanged = \false; public function beforeTraverse(Node $node) : void { $this->hasChanged = \false; } public function enterNode(Node $node) : ?Node { $origNode = $node->getAttribute(PhpDocAttributeKey::ORIG_NODE); if ($origNode === null) { $this->hasChanged = \true; } return null; } public function hasChanged() : bool { return $this->hasChanged; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.18 |
proxy
|
phpinfo
|
Settings