Skip to content

Commit c35f2c8

Browse files
committed
Talking about getSynopsis()
1 parent b07eca5 commit c35f2c8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

UPGRADE-2.7.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,31 @@ Validator
559559
(NullValidator, TrueValidator, FalseValidator) are marked as deprecated
560560
in favor of their `Is`-prefixed equivalent.
561561

562+
Console
563+
-------
564+
565+
* The `Symfony\Component\Console\Input\InputDefinition::getSynopsis()` method
566+
now has an optional argument (it previously had no arguments). If you override
567+
this method, you'll need to add this argument so that your signature matches:
568+
569+
Before:
570+
571+
```php
572+
public function getSynopsis()
573+
{
574+
// ...
575+
}
576+
```
577+
578+
After:
579+
580+
```php
581+
public function getSynopsis($short = false)
582+
{
583+
// ...
584+
}
585+
```
586+
562587
TwigBundle
563588
----------
564589

0 commit comments

Comments
 (0)