Skip to content

[Autocomplete] Correct Method Name for FQCN #458

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
Sep 12, 2022

Conversation

rodnaph
Copy link
Contributor

@rodnaph rodnaph commented Sep 11, 2022

Q A
Bug fix? yes
New feature? no
Tickets N/A
License MIT

The current method does not seem to exist, but this one will return the FQCN of the metadata being wrapped, which seems to be what it intends to do.

This bug triggers when a specified search property does not exist, and an exception is thrown when creating the exception message.

There are no tests for this code atm, and the ClassMetadata service has properties accessed which do not exist on the interface which makes mocking or adding a dummy problematic. Static analysis would also have trouble here I think.

I'm happy to spend time adding these tests, but unsure if this is the right fix right now, perhaps I missed something.

the current method does not seem to exist, but this one will return the
FQCN of the metadata being wrapped, which seems to be what it intends to
do.

there are no tests for this code atm, and the ClassMetadata service has
properties accessed which do not exist on the interface which makes
mocking or adding a dummy problematic. static analysis would also have
trouble here I think.
@rodnaph rodnaph changed the title Correct Method Name for FQCN [Autocomplete] Correct Method Name for FQCN Sep 11, 2022
@weaverryan
Copy link
Member

You're absolutely right - probably some copy and pasting mistake by me. Thanks @rodnaph!

@weaverryan weaverryan merged commit 5f484d6 into symfony:2.x Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants