The Wayback Machine - https://web.archive.org/web/20220806225843/https://github.com/symfony/symfony/pull/39861
Skip to content
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

[DependencyInjection] Skip deprecated definitions in CheckTypeDeclarationsPass #39861

Merged
merged 1 commit into from Jan 16, 2021

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented Jan 16, 2021

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

When a definition uses a deprecated class , CheckTypeDeclarationsPass (with $autoload = true) will autoload the class, which triggers a deprecation notice. That breaks the CI in #39802 because the compiler pass is registered inside the SecurityBundle test suite.
I propose to stop checking deprecated definitions. Makes sense?

@carsonbot carsonbot changed the title [DI] Skip deprecated definitions in CheckTypeDeclarationsPass [DependencyInjection] Skip deprecated definitions in CheckTypeDeclarationsPass Jan 16, 2021
@carsonbot carsonbot added this to the 4.4 milestone Jan 16, 2021
@chalasr chalasr merged commit 5ba237a into symfony:4.4 Jan 16, 2021
5 checks passed
@chalasr chalasr deleted the deprecated-types-no-check branch Jan 16, 2021
This was referenced Jan 27, 2021
chalasr added a commit to chalasr/symfony that referenced this issue Sep 30, 2021
…itions in CheckTypeDeclarationsPass (chalasr)"

This reverts commit 5ba237a, reversing
changes made to 833a9e0.
chalasr added a commit to chalasr/symfony that referenced this issue Sep 30, 2021
…itions in CheckTypeDeclarationsPass (chalasr)"

This reverts commit 5ba237a, reversing
changes made to 833a9e0.
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.

None yet

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.