Skip to content

Commit

Permalink
Ast: FunctionReturnType - fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
janpecha committed Mar 19, 2024
1 parent 29979be commit 8f448ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ast/FunctionReturnType.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function toString()
public static function parse(NodeParser $parser)
{
$indentation = $parser->consumeNodeIndentation();
$parser->consumeAsUnknowContent(':');
$parser->consumeAsIndentation(':');
$parser->consumeWhitespace();
$indentation .= $parser->flushIndentation();
$nullable = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpSimpleAst/fixtures/PHP-8.0/80000.union-types.dump
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ CzProject\PhpSimpleAst\Ast\PhpString
| | | | | | | | | defaultValue: null
| | | | | | | closer: ')'
| | | | | | returnType: CzProject\PhpSimpleAst\Ast\FunctionReturnType
| | | | | | | indentation: ' '
| | | | | | | indentation: ': '
| | | | | | | nullable: false
| | | | | | | type: CzProject\PhpSimpleAst\Ast\Type
| | | | | | | | indentation: ''
Expand Down

0 comments on commit 8f448ea

Please sign in to comment.