We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 160c1c6 commit f374f53Copy full SHA for f374f53
src/UsedSymbolExtractor.php
@@ -426,6 +426,7 @@ private function canBeSymbolName(
426
|| $tokenAfterName[0] === T_INSTEADOF
427
|| $tokenAfterName[0] === T_AS
428
|| $tokenAfterName === ':'
429
+ || $tokenAfterName === '='
430
) {
431
return false;
432
}
tests/UsedSymbolExtractorTest.php
@@ -59,6 +59,7 @@ public function provideVariants(): iterable
59
[],
60
[
61
strtolower('PDO') => SymbolKind::CLASSLIKE,
62
+ strtolower('SESSION_ID') => SymbolKind::CONSTANT,
63
],
64
];
65
tests/data/not-autoloaded/used-symbols/t-string-issues.php
@@ -10,6 +10,8 @@
10
11
class Test
12
{
13
+ public const string SESSION_ID = '...';
14
+
15
use SomeTrait {
16
array_filter insteadof array_values;
17
array_map as array_walk;
0 commit comments