File manager - Edit - /var/www/payraty/helpdesk/vendor/roave/better-reflection/src/Util/GetLastDocComment.php
Back
<?php declare(strict_types=1); namespace Roave\BetterReflection\Util; use PhpParser\NodeAbstract; use function assert; /** @internal */ final class GetLastDocComment { /** * @return non-empty-string|null * * @psalm-pure */ public static function forNode(NodeAbstract $node): string|null { /** @psalm-suppress ImpureMethodCall */ $docComment = $node->getDocComment(); if ($docComment === null) { return null; } /** @psalm-suppress ImpureMethodCall */ $comment = $docComment->getReformattedText(); assert($comment !== ''); return $comment; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings