Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhpDocNode.php

function PhpDocNode::__toString

Overrides Node::__toString

File

vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/PhpDocNode.php, line 438

Class

PhpDocNode

Namespace

PHPStan\PhpDocParser\Ast\PhpDoc

Code

public function __toString() : string {
    $children = array_map(static function (PhpDocChildNode $child) : string {
        $s = (string) $child;
        return $s === '' ? '' : ' ' . $s;
    }, $this->children);
    return "/**\n *" . implode("\n *", $children) . "\n */";
}
RSS feed
Powered by Drupal