File tree 3 files changed +5
-0
lines changed
data/not-autoloaded/used-symbols
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ private function canBeSymbolName(
415
415
|| $ tokenBeforeName [0 ] === (PHP_VERSION_ID > 80000 ? T_NULLSAFE_OBJECT_OPERATOR : -1 )
416
416
|| $ tokenAfterName [0 ] === T_INSTEADOF
417
417
|| $ tokenAfterName [0 ] === T_AS
418
+ || $ tokenAfterName === ': '
418
419
) {
419
420
return false ;
420
421
}
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ public function provideVariants(): iterable
206
206
private static function extensionSymbolsForExtensionsTestCases (): array
207
207
{
208
208
return [
209
+ strtolower ('Normalizer ' ) => SymbolKind::CLASSLIKE , // https://www.php.net/manual/en/class.normalizer.php
209
210
strtolower ('XMLReader ' ) => SymbolKind::CLASSLIKE ,
210
211
strtolower ('PDO ' ) => SymbolKind::CLASSLIKE ,
211
212
strtolower ('json_encode ' ) => SymbolKind::FUNCTION ,
Original file line number Diff line number Diff line change 20
20
CURLOPT_SSL_VERIFYPEER ;
21
21
\json_decode ('' );
22
22
ZipArchive::class;
23
+
24
+ function foo ($ normalizer ) {}
25
+ foo (normalizer: 1 );
You can’t perform that action at this time.
0 commit comments