We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a895e commit ad610cfCopy full SHA for ad610cf
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -1495,6 +1495,12 @@ public function testBug11913(): void
1495
$this->assertNoErrors($errors);
1496
}
1497
1498
+ public function testBug12549(): void
1499
+ {
1500
+ $errors = $this->runAnalyse(__DIR__ . '/data/bug-12549.php');
1501
+ $this->assertNoErrors($errors);
1502
+ }
1503
+
1504
/**
1505
* @param string[]|null $allAnalysedFiles
1506
* @return Error[]
tests/PHPStan/Analyser/data/bug-12549.php
@@ -0,0 +1,17 @@
1
+<?php
2
3
+namespace Bug12549;
4
5
+class Foo
6
+{
7
+ public const string OPTION_ROUNDING_MODE = 'roundingMode';
8
9
+ public function setRoundingMode(): void
10
11
+ $this->bar(self::OPTION_ROUNDING_MODE);
12
13
14
+ private function bar(string $v): void
15
16
17
+}
0 commit comments