Skip to content

Commit ab7bf64

Browse files
committed
minor symfony#9269 [Console] make InputArgument::setDefault() chainable (pscheit)
This PR was merged into the master branch. Discussion ---------- [Console] make InputArgument::setDefault() chainable | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | maybe | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT To allow chaining of methods, setDefault should return the InputArgument. I'm not quite sure if you would tread this as a BC break? best regards Philipp Commits ------- 7b7a4c1 [Console] make InputArgument::setDefault() chainable
2 parents 5b6ef23 + 7b7a4c1 commit ab7bf64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Console/Input/InputArgument.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ public function setDefault($default = null)
108108
}
109109

110110
$this->default = $default;
111+
return $this;
111112
}
112113

113114
/**

0 commit comments

Comments
 (0)