@@ -125,7 +125,7 @@ public static function findOopContext(File $file, int $position): int
125125 in_array ($ condCode , Tokens::$ ooScopeTokens , true )
126126 && ($ condLevel === $ targetLevel )
127127 ) {
128- return $ condPosition ;
128+ return ( int ) $ condPosition ;
129129 }
130130 }
131131
@@ -422,7 +422,7 @@ public static function functionDocBlockTag(string $tag, File $file, int $positio
422422 /**
423423 * @param File $file
424424 * @param int $functionPosition
425- * @return array<string>
425+ * @return array<string, array<string> >
426426 */
427427 public static function functionDocBlockParamTypes (File $ file , int $ functionPosition ): array
428428 {
@@ -688,6 +688,7 @@ public static function isUntypedPsrMethod(File $file, int $position): bool
688688 return false ;
689689 }
690690
691+ /** @var array<string> $psrInterfaces */
691692 static $ psrInterfaces ;
692693 $ psrInterfaces or $ psrInterfaces = [
693694 'LoggerInterface ' ,
@@ -712,6 +713,7 @@ public static function isUntypedPsrMethod(File $file, int $position): bool
712713 'StreamFactoryInterface ' ,
713714 ];
714715
716+ /** @var string $name */
715717 foreach ($ names as $ name ) {
716718 $ lastName = array_slice (explode ('\\' , $ name ), -1 , 1 )[0 ];
717719 if (in_array ($ lastName , $ psrInterfaces , true )) {
0 commit comments