File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
data/not-autoloaded/used-symbols Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ private function canBeSymbolName(
415415 || $ tokenBeforeName [0 ] === (PHP_VERSION_ID > 80000 ? T_NULLSAFE_OBJECT_OPERATOR : -1 )
416416 || $ tokenAfterName [0 ] === T_INSTEADOF
417417 || $ tokenAfterName [0 ] === T_AS
418+ || $ tokenAfterName === ': '
418419 ) {
419420 return false ;
420421 }
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ public function provideVariants(): iterable
206206 private static function extensionSymbolsForExtensionsTestCases (): array
207207 {
208208 return [
209+ strtolower ('Normalizer ' ) => SymbolKind::CLASSLIKE , // https://www.php.net/manual/en/class.normalizer.php
209210 strtolower ('XMLReader ' ) => SymbolKind::CLASSLIKE ,
210211 strtolower ('PDO ' ) => SymbolKind::CLASSLIKE ,
211212 strtolower ('json_encode ' ) => SymbolKind::FUNCTION ,
Original file line number Diff line number Diff line change 2020CURLOPT_SSL_VERIFYPEER ;
2121\json_decode ('' );
2222ZipArchive::class;
23+
24+ function foo ($ normalizer ) {}
25+ foo (normalizer: 1 );
You can’t perform that action at this time.
0 commit comments