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

bug - lowercase_static_reference break code #7771

Closed
SpacePossum opened this issue Jan 24, 2024 · 0 comments · Fixed by #7775
Closed

bug - lowercase_static_reference break code #7771

SpacePossum opened this issue Jan 24, 2024 · 0 comments · Fixed by #7775
Labels

Comments

@SpacePossum
Copy link
Contributor

Description

PHP-CS-Fixer breaks valid PHP8.3 code in non-risky mode when using lowercase_static_reference

Runtime version

PHP CS Fixer 3.48.0 Small Changes by Fabien Potencier, Dariusz Ruminski and contributors.
PHP runtime: 8.3.2

Used command

./vendor/bin/php-cs-fixer fix --dry-run -vvv --diff test2.php --rules=lowercase_static_reference

Code snippet that reproduces the problem

   <?php

   class FOO
   {
       private const string PARENT = 'parent';
   }
   1) test2.php (lowercase_static_reference)
      ---------- begin diff ----------
--- /app/test2.php
+++ /app/test2.php
@@ -2,5 +2,5 @@
 
 class FOO
 {
-    private const string PARENT = 'parent';
+    private const string parent = 'parent';
 }

      ----------- end diff -----------

expected no changes

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.

1 participant