Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixed parsing deprecated definitions without message key#40541

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:5.2fromadamwojs:undefined_index_message
Mar 23, 2021
Merged

Fixed parsing deprecated definitions without message key#40541

nicolas-grekas merged 1 commit intosymfony:5.2fromadamwojs:undefined_index_message
Mar 23, 2021

Conversation

@adamwojs
Copy link
Contributor

QA
Branch?5.2
Bug fix?yes
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Steps to reproduce

  1. Create service/alias definition and mark it as deprecated without specifying message key as shown inhttps://symfony.com/doc/5.2/service_container/alias_private.html#deprecating-service-aliases. For example:
services:service_without_deprecation_message:class:Foodeprecated:package:vendor/packageversion:1.1alias_without_deprecation_message:alias:foobardeprecated:package:vendor/packageversion:1.1
  1. Clear cache by runningphp bin/console cache:clear

Actual behaviour

Symfony\Component\Config\Exception\LoaderLoadException exception is thrown with the following message:Warning: Undefined array key "message" (...)

Seehttps://gist.github.com/adamwojs/5bac85d4326d8fbe6f52a357fa6e57e6 for full stactrace.

Excepted behaviour

Given definitions are loaded correctly. Default service/alias deprecation message is used as shown in linked documentation page.

@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has acontribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (seehttps://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (seehttps://symfony.com/releases)
  • Features and deprecations must be submitted against the 5.x branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@adamwojsadamwojs changed the titleFixed parsing deprecated definitions without message key[DependencyInjection] Fixed parsing deprecated definitions without message keyMar 22, 2021
@carsonbot
Copy link

Hey!

I had a quick look at this PR, I think it is alright.

I think@mtarld has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@carsonbotcarsonbot changed the title[DependencyInjection] Fixed parsing deprecated definitions without message keyFixed parsing deprecated definitions without message keyMar 23, 2021
@nicolas-grekas
Copy link
Member

Thank you@adamwojs.

adamwojs reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas merged commite494b38 intosymfony:5.2Mar 23, 2021
@adamwojsadamwojs deleted the undefined_index_message branchMarch 23, 2021 13:25
@fabpotfabpot mentioned this pull requestMar 29, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

3 participants

@adamwojs@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp