Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
-refactoring
Co-authored-by: Jan Tvrdík <_github.com@jantvrdik.com>
  • Loading branch information
alexndlm and JanTvrdik authored Aug 30, 2021
commit b01643de505565c301e981741b6be138737f45b5
5 changes: 3 additions & 2 deletions src/Ast/PhpDoc/PhpDocNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ public function getTypeAliasImportTagValues(string $tagName = '@phpstan-import-t
public function __toString(): string
{
$children = array_map(
static function ($child): string {
return (string) $child === '' ? '' : ' ' . $child;
static function (PhpDocChildNode $child): string {
$s = (string) $child;
return $s === '' ? '' : ' ' . $s;
},
$this->children
);
Expand Down