Skip to content

Commit 1342847

Browse files
chore(deps): update dependency rector/rector to ^0.19 (#1510)
1 parent 8b347dc commit 1342847

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"psr/http-message": "^1 || ^2",
3131
"react/http": "^1.6",
3232
"react/promise": "^2.9",
33-
"rector/rector": "^0.18",
33+
"rector/rector": "^0.19",
3434
"symfony/polyfill-php81": "^1.23",
3535
"symfony/var-exporter": "^5 || ^6 || ^7",
3636
"thecodingmachine/safe": "^1.3 || ^2"

src/Utils/SchemaPrinter.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,11 @@ protected static function printInputValue($arg): string
348348
throw new InvariantViolation("Unable to convert defaultValue of argument {$arg->name} into AST: {$inconvertibleDefaultValue}.");
349349
}
350350

351-
$argDecl .= ' = ' . Printer::doPrint($defaultValueAST);
351+
$printedDefaultValue = Printer::doPrint($defaultValueAST);
352+
$argDecl .= " = {$printedDefaultValue}";
352353
}
353354

354-
$argDecl .= static::printDeprecated($arg);
355-
356-
return $argDecl;
355+
return $argDecl . static::printDeprecated($arg);
357356
}
358357

359358
/**

0 commit comments

Comments
 (0)