Skip to content

[Console] Added verbosity level shorthand methods to OutputInterface #11115

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

Closed
wants to merge 2 commits into from
Closed

[Console] Added verbosity level shorthand methods to OutputInterface #11115

wants to merge 2 commits into from

Conversation

fabiang
Copy link

@fabiang fabiang commented Jun 13, 2014

Hello,

I've added the verbosity level shorthand methods to the interface "Symfony\Component\Console\Output\OutputInterface" as they should always be implemented by classes implementing the interface. Also it makes unit test easier and avoids warnings like:

"The method isVerbose() does not seem to exist on object<Symfony\Compon...put\OutputInterface>." (Scrutinizer-Cis PHP Analyzer)

As this possibly could break backwards compatibility I like to merge into master.

Q A
Bug fix? no
New feature? yes
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR no

@stof
Copy link
Member

stof commented Jun 13, 2014

They cannot be added in the interface until 3.0 as this is a BC break in the main API of the component.

Adding them in the interface for 3.0 is already planned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants