We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a827806 commit b11b658Copy full SHA for b11b658
tests/UnusedVariableTest.php
@@ -1029,6 +1029,25 @@ public function foo() : void {
1029
'ignored_issues' => [],
1030
'php_version' => '8.3',
1031
],
1032
+ 'usedAsEnumFetch' => [
1033
+ 'code' => '<?php
1034
+ enum E {
1035
+ case C;
1036
+ }
1037
+
1038
+ class A {
1039
+ public function foo() : void {
1040
+ $var = "C";
1041
1042
+ if (rand(0, 1)) {
1043
+ E::{$var};
1044
1045
1046
+ }',
1047
+ 'assertions' => [],
1048
+ 'ignored_issues' => [],
1049
+ 'php_version' => '8.3',
1050
+ ],
1051
'usedAsStaticPropertyAssign' => [
1052
'code' => '<?php
1053
class A {
0 commit comments