From c35f2c848234c403c4b7e1255a89e3723082190f Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 29 May 2015 12:21:38 -0400 Subject: [PATCH 1/2] Talking about getSynopsis() --- UPGRADE-2.7.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/UPGRADE-2.7.md b/UPGRADE-2.7.md index 519332155c799..42b8349702f34 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 ---------- From a7985d244c62ee31d9c1f1858a779250e968cc4d Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Fri, 29 May 2015 12:22:24 -0400 Subject: [PATCH 2/2] Fixing phpdoc typo --- src/Symfony/Component/Console/Input/InputDefinition.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Input/InputDefinition.php b/src/Symfony/Component/Console/Input/InputDefinition.php index 7efb849ab2470..044ec265b246d 100644 --- a/src/Symfony/Component/Console/Input/InputDefinition.php +++ b/src/Symfony/Component/Console/Input/InputDefinition.php @@ -391,7 +391,7 @@ private function shortcutToName($shortcut) /** * 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 */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy