8000 [Debug] Remove false-positive deprecation from DebugClassLoader by nicolas-grekas · Pull Request #24921 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Debug] Remove false-positive deprecation from DebugClassLoader #24921

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
Nov 11, 2017

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

A fully up to date 3.4 standard edition still triggers deprecation notices such as

The "Twig_Extension::getName()" method is deprecated since 1.26 (to be removed in 2.0), not used anymore internally. You should not extend it from "Symfony\Bridge\Twig\Extension\LogoutUrlExtension".

This is a false positive: extending a deprecated method is OK, unless you call the parent, which is another BC layer that should itself trigger the deprecation.

@fabpot
Copy link
Member
fabpot commented Nov 11, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 5edd413 into symfony:3.4 Nov 11, 2017
fabpot added a commit that referenced this pull request Nov 11, 2017
…oader (nicolas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[Debug] Remove false-positive deprecation from DebugClassLoader

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

A fully up to date 3.4 standard edition still triggers deprecation notices such as
> The "Twig_Extension::getName()" method is deprecated since 1.26 (to be removed in 2.0), not used anymore internally. You should not extend it from "Symfony\Bridge\Twig\Extension\LogoutUrlExtension".

This is a false positive: extending a deprecated method is OK, unless you call the parent, which is another BC layer that should itself trigger the deprecation.

Commits
-------

5edd413 [Debug] Remove false-positive deprecation from DebugClassLoader
@nicolas-grekas nicolas-grekas deleted the debug-false-deprec branch November 11, 2017 16:35
This was referenced Nov 12, 2017
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
0