Skip to content

Commit 1ca342c

Browse files
committed
Remove useless var tags and cast properly
Via RemoveUselessVarTagRector and NullToStrictStringFuncCallArgRector
1 parent b46bc87 commit 1ca342c

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/ProcessedSite.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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

src/StaticSite.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)