Skip to content

Revert "feature #13756 [3.0][Console] Added type hint (francisbesset)" #15657

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

Conversation

nicolas-grekas
Copy link
Member

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

This reverts commit ad1888b, reversing
changes made to fffcc24.

The rationale behind this change is that type hinting against Exception is not compatible with PHP7.
The second level rational is that this creates a BC break that can easilly be prevented.

This PR will be seconded by an other one on 2.3 that will allow catching then rendering throwables, and add an instanceof type check for $output.

Merging this one first will prevent merge conflicts.

…besset)"

This reverts commit ad1888b, reversing
changes made to fffcc24.
@Tobion
Copy link
Contributor

Tobion commented Aug 31, 2015

The OutputInterface typehint should stay as this has nothing to do with php 7 compatibility and we already agreed to add it.

@nicolas-grekas
Copy link
Member Author

So, thinking twice about this one, I'm closing: throwables should be handled differently, and in fact we already do with the debug component (they are converted to exception then re-injected into this code path).

@nicolas-grekas nicolas-grekas deleted the console-render-x branch August 31, 2015 06:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants