Skip to content

Drop Debug compatibility layers #33027

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 1 commit into from
Aug 8, 2019

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Aug 7, 2019

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

@chalasr chalasr added this to the 5.0 milestone Aug 7, 2019
@chalasr chalasr force-pushed the drop-debug-compat branch from c73262f to 7fc93e9 Compare August 7, 2019 22:12
@nicolas-grekas
Copy link
Member

composer.json needs to be updated too, to remove the classmap entry

@fancyweb
Copy link
Contributor

fancyweb commented Aug 8, 2019

@chalasr Line 137 in Console Application.php -> && !$phpHandler[0] instanceof LegacyErrorHandler

@chalasr chalasr force-pushed the drop-debug-compat branch from 7fc93e9 to db0d29f Compare August 8, 2019 06:54
@chalasr
Copy link
Member Author

chalasr commented Aug 8, 2019

@fancyweb fixed, thank you.

@nicolas-grekas if you mean the one added by #32873 (comment), it was reverted there

@chalasr chalasr force-pushed the drop-debug-compat branch from db0d29f to 6b1b05e Compare August 8, 2019 07:05
@chalasr
Copy link
Member Author

chalasr commented Aug 8, 2019

Removed the ProxiedMethodReturnExpression classmap entry

@chalasr chalasr force-pushed the drop-debug-compat branch from 6b1b05e to 8e9bff5 Compare August 8, 2019 07:56
@@ -134,7 +132,7 @@ public function run(InputInterface $input = null, OutputInterface $output = null
};
if ($phpHandler = set_exception_handler($renderException)) {
restore_exception_handler();
if (!\is_array($phpHandler) || (!$phpHandler[0] instanceof ErrorHandler && !$phpHandler[0] instanceof LegacyErrorHandler)) {
if (!\is_array($phpHandler) || (!$phpHandler[0] instanceof ErrorHandler)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra brackets should be removed :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right! done

@chalasr chalasr force-pushed the drop-debug-compat branch from 8e9bff5 to 2326b80 Compare August 8, 2019 08:01
@nicolas-grekas
Copy link
Member

Thank you @chalasr.

@nicolas-grekas nicolas-grekas merged commit 2326b80 into symfony:master Aug 8, 2019
nicolas-grekas added a commit that referenced this pull request Aug 8, 2019
This PR was merged into the 5.0-dev branch.

Discussion
----------

Drop Debug compatibility layers

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

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

2326b80 [Debug] Drop compatibility layers
@chalasr chalasr deleted the drop-debug-compat branch August 8, 2019 08:15
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.

6 participants