diff --git a/UPGRADE-2.7.md b/UPGRADE-2.7.md index 519332155c..42b8349702 100644 --- a/UPGRADE-2.7.md +++ b/UPGRADE-2.7.md @@ -559,6 +559,31 @@ Validator (NullValidator, TrueValidator, FalseValidator) are marked as deprecated in favor of their `Is`-prefixed equivalent. +Console +------- + + * The `Symfony\Component\Console\Input\InputDefinition::getSynopsis()` method + now has an optional argument (it previously had no arguments). If you override + this method, you'll need to add this argument so that your signature matches: + + Before: + + ```php + public function getSynopsis() + { + // ... + } + ``` + + After: + + ```php + public function getSynopsis($short = false) + { + // ... + } + ``` + TwigBundle ---------- diff --git a/src/Symfony/Component/Console/Input/InputDefinition.php b/src/Symfony/Component/Console/Input/InputDefinition.php index 7efb849ab2..044ec265b2 100644 --- a/src/Symfony/Component/Console/Input/InputDefinition.php +++ b/src/Symfony/Component/Console/Input/InputDefinition.php @@ -391,7 +391,7 @@ class InputDefinition /** * Gets the synopsis. * - * @param bool $short Whether to return the short version (with options foloded) or not + * @param bool $short Whether to return the short version (with options folded) or not * * @return string The synopsis */