REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 710 B
Close
/opt/cpanel/ea-wappspector/vendor/rector/rector/src/PHPStan/NodeVisitor/WrappedNodeRestoringNodeVisitor.php
Text
Base64
<?php declare (strict_types=1); namespace Rector\PHPStan\NodeVisitor; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; use PHPStan\Node\Expr\AlwaysRememberedExpr; /** * Restore node tree to avoid PHPStan virtual node printing * @ref https://github.com/phpstan/phpstan-src/commit/0cdda0b210a623ee299323da80771c2c84c602f9 */ final class WrappedNodeRestoringNodeVisitor extends NodeVisitorAbstract { public function enterNode(Node $node) : ?Node { if (!$node instanceof AlwaysRememberedExpr) { return null; } $expr = $node; while ($expr instanceof AlwaysRememberedExpr) { $expr = $expr->getExpr(); } return $expr; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
UnreachableStatementNodeVisitor.php
2.37 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
WrappedNodeRestoringNodeVisitor.php
710 B
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).