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

Skip to content

Commit 650fe2e

Browse files
committed
bug #47372 [Console] Fix OutputFormatterStyleStack::getCurrent return type (alamirault)
This PR was merged into the 6.0 branch. Discussion ---------- [Console] Fix OutputFormatterStyleStack::getCurrent return type | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> `$styles` is an array of `OutputFormatterStyleInterface` so `getCurrent` method can return this interface Commits ------- 7787c15 [Console] Fix OutputFormatterStyleStack::getCurrent return type
2 parents 9ecb666 + 7787c15 commit 650fe2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function pop(OutputFormatterStyleInterface $style = null): OutputFormatte
7777
/**
7878
* Computes current style with stacks top codes.
7979
*/
80-
public function getCurrent(): OutputFormatterStyle
80+
public function getCurrent(): OutputFormatterStyleInterface
8181
{
8282
if (empty($this->styles)) {
8383
return $this->emptyStyle;

0 commit comments

Comments
 (0)