Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Adding UPGRADE-2.7 about small BC break in InputDefinition #14782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions UPGRADE-2.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------

Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Input/InputDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down