Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 5, 2025
1 parent 9d4c7ec commit adfceae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileSystem/FilesFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function findInDirectoriesAndFiles(

// filter files by specific suffix
if ($hasOnlySuffix) {
$fileWithSuffixFilter = (static fn(string $filePath): bool => str_ends_with($filePath, $onlySuffix));
$fileWithSuffixFilter = (static fn(string $filePath): bool => str_ends_with($filePath, (string) $onlySuffix));
} elseif ($suffixes !== []) {
$fileWithSuffixFilter = static function (string $filePath) use ($suffixes): bool {
$filePathExtension = pathinfo($filePath, PATHINFO_EXTENSION);
Expand Down

0 comments on commit adfceae

Please sign in to comment.