File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,11 +70,7 @@ public static function getPaths(): array {
7070
7171 foreach ( $ iterator as $ filename => $ file_object ) {
7272
73- /**
74- * @var string $filename
75- */
76-
77- $ base_name = basename ( $ filename );
73+ $ base_name = basename ( (string ) $ filename );
7874 if ( $ base_name !== '. ' && $ base_name !== '.. ' ) {
7975 $ real_filepath = realpath ( $ filename );
8076
Original file line number Diff line number Diff line change @@ -72,10 +72,7 @@ public static function getPaths(): array {
7272 );
7373
7474 foreach ( $ iterator as $ filename => $ file_object ) {
75- /**
76- * @var string $filename
77- */
78- $ base_name = basename ( $ filename );
75+ $ base_name = basename ( (string ) $ filename );
7976 if ( $ base_name !== '. ' && $ base_name !== '.. ' ) {
8077 $ real_filepath = realpath ( $ filename );
8178
You can’t perform that action at this time.
0 commit comments