Skip to content

Commit

Permalink
Update DbalTypesSearcher.php
Browse files Browse the repository at this point in the history
Para usar str_ends_with()
  • Loading branch information
joanhey authored Dec 9, 2023
1 parent faf1a6a commit 9a27fe0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private static function dbalClassesSearcher(string $contextName): callable
{
return static function (array $totalNamespaces, string $path) use ($contextName): array {
$possibleFiles = scandir($path);
$files = filter(static fn (string $file): bool => Utils::endsWith('Type.php', $file), $possibleFiles);
$files = filter(static fn (string $file): bool => str_ends_with($file, 'Type.php'), $possibleFiles);

$namespaces = map(
static function (string $file) use ($path, $contextName): string {
Expand Down

0 comments on commit 9a27fe0

Please sign in to comment.