Skip to content

Commit

Permalink
apply rector
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Jan 9, 2024
1 parent 2829e9a commit 3d89cc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Utils/SchemaPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,11 @@ protected static function printInputValue($arg): string
throw new InvariantViolation("Unable to convert defaultValue of argument {$arg->name} into AST: {$inconvertibleDefaultValue}.");
}

$argDecl .= ' = ' . Printer::doPrint($defaultValueAST);
$printedDefaultValue = Printer::doPrint($defaultValueAST);
$argDecl .= " = {$printedDefaultValue}";
}

$argDecl .= static::printDeprecated($arg);

return $argDecl;
return $argDecl . static::printDeprecated($arg);
}

/**
Expand Down

0 comments on commit 3d89cc5

Please sign in to comment.