Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI] Don't show internal service id on binding errors #27834

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
Jul 4, 2018

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 -

Will throw
Unused binding "$variableName" in service "App\Twig\AppExtension".
instead of the current
Unused binding "$variableName" in service ".abstract.instanceof.App\Twig\AppExtension".

@stof
Copy link
Member

stof commented Jul 4, 2018

this needs tests

@nicolas-grekas
Copy link
Member Author

now tested

@nicolas-grekas nicolas-grekas merged commit 61f005a into symfony:3.4 Jul 4, 2018
nicolas-grekas added a commit that referenced this pull request Jul 4, 2018
…olas-grekas)

This PR was merged into the 3.4 branch.

Discussion
----------

[DI] Don't show internal service id on binding errors

| 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        | -

Will throw
    Unused binding "$variableName" in service "App\Twig\AppExtension".
instead of the current
    Unused binding "$variableName" in service ".abstract.instanceof.App\Twig\AppExtension".

Commits
-------

61f005a [DI] Don't show internal service id on binding errors
@nicolas-grekas nicolas-grekas deleted the di-bind-error branch July 4, 2018 15:43
This was referenced Jul 23, 2018
@viccherubini
Copy link

This appears to have broken my code in 3.4.13. I upgraded and I now get this error even if the binding is used in the code itself. I manually changed the file in question, ResolveInstanceofConditionalsPass.php to what it was in 3.4.12 and the CLI works fine (the application itself appears to work fine).

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