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

class_reference_name_casing is confused by class with the same name #6282

Closed
VincentLanglet opened this issue Feb 10, 2022 · 2 comments · Fixed by #6283
Closed

class_reference_name_casing is confused by class with the same name #6282

VincentLanglet opened this issue Feb 10, 2022 · 2 comments · Fixed by #6283
Labels

Comments

@VincentLanglet
Copy link
Contributor

Bug report

Hi @SpacePossum, there is another bug with the class_reference_name_casing rule.

In the following automatic PR there is a false positive error from PHP CS Fixer
sonata-project/exporter#572

Code snippet that reproduces the problem

<?php

use Sonata\Exporter\Writer\XmlWriter;

$services->set('sonata.exporter.writer.xml', XmlWriter::class);

The fixer is proposing to change to XMLWriter::class because of the native class https://www.php.net/manual/fr/book.xmlwriter.php

@SpacePossum
Copy link
Contributor

thanks for reporting, please see #6283

@VincentLanglet
Copy link
Contributor Author

Thanks a lot @SpacePossum. Will a 3.6.1 version be planned ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants