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

AnonymousClass6a85eed1b3aeaa3b7eaea1eb536990ed #75

Open
mvorisek opened this issue Oct 24, 2022 · 1 comment
Open

AnonymousClass6a85eed1b3aeaa3b7eaea1eb536990ed #75

mvorisek opened this issue Oct 24, 2022 · 1 comment

Comments

@mvorisek
Copy link

for https://github.com/doctrine/dbal/blob/3.5.1/src/Platforms/AbstractPlatform.php#L225 this lib currently emit:

Call to deprecated method getVarcharTypeDeclarationSQL() of class AnonymousClass6a85eed1b3aeaa3b7eaea1eb536990ed:
Use {@link getStringTypeDeclarationSQL()} instead.

from AnonymousClass6a85eed1b3aeaa3b7eaea1eb536990ed it is very hard to tell which class and also I double the name is stable for error ignore.

I would expect anonymous name like from native phpstan https://phpstan.org/r/7f7ac916-f7fe-4c4d-8035-337e837344ae, ie. class@anonymous/tmp.php:7 istead of AnonymousClass6a85eed1b3aeaa3b7eaea1eb536990ed.

@ondrejmirtes
Copy link
Member

It needs to call getDisplayName() instead of getName() on ClassReflection. Feel free to send a PR.

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

No branches or pull requests

2 participants