File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
rules/CodingStyle/Rector/Enum_
src/DependencyInjection/PHPStan Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 99 ],
1010 "require" : {
1111 "php" : " ^7.4|^8.0" ,
12- "phpstan/phpstan" : " ^2.1.32 "
12+ "phpstan/phpstan" : " ^2.1.33 "
1313 },
1414 "autoload" : {
1515 "files" : [
Original file line number Diff line number Diff line change 2323 "nikic/php-parser" : " ^5.6.2" ,
2424 "ondram/ci-detector" : " ^4.2" ,
2525 "phpstan/phpdoc-parser" : " ^2.3" ,
26- "phpstan/phpstan" : " ^2.1.32 " ,
26+ "phpstan/phpstan" : " ^2.1.33 " ,
2727 "react/event-loop" : " ^1.6" ,
2828 "react/promise" : " ^3.3" ,
2929 "react/socket" : " ^1.17" ,
Original file line number Diff line number Diff line change @@ -208,9 +208,9 @@ private function convertToPascalCase(string $name): string
208208 fn ($ part ): string =>
209209 // If part is all uppercase, convert to ucfirst(strtolower())
210210 // If part is already mixed or PascalCase, keep as is except ucfirst
211- ctype_upper (( string ) $ part )
212- ? ucfirst (strtolower (( string ) $ part ))
213- : ucfirst (( string ) $ part ),
211+ ctype_upper ($ part )
212+ ? ucfirst (strtolower ($ part ))
213+ : ucfirst ($ part ),
214214 $ parts
215215 )
216216 );
Original file line number Diff line number Diff line change 77use PHPStan \DependencyInjection \MemoizingContainer ;
88use PHPStan \DependencyInjection \Nette \NetteContainer ;
99use PHPStan \Parser \AnonymousClassVisitor ;
10+ use PHPStan \Parser \ArrayMapArgVisitor ;
1011use PHPStan \Parser \RichParser ;
1112use PHPStan \Parser \VariadicFunctionsVisitor ;
1213use PHPStan \Parser \VariadicMethodsVisitor ;
@@ -42,6 +43,7 @@ public static function removeRichVisitors(RichParser $richParser): void
4243 $ container ->findServiceNamesByType (AnonymousClassVisitor::class)[0 ] => true ,
4344 $ container ->findServiceNamesByType (VariadicFunctionsVisitor::class)[0 ] => true ,
4445 $ container ->findServiceNamesByType (VariadicMethodsVisitor::class)[0 ] => true ,
46+ $ container ->findServiceNamesByType (ArrayMapArgVisitor::class)[0 ] => true ,
4547 ];
4648
4749 $ tags [RichParser::VISITOR_SERVICE_TAG ] = $ nodeVisitorsToKeep ;
You can’t perform that action at this time.
0 commit comments