Skip to content

Commit

Permalink
Replace function with fn (#118)
Browse files Browse the repository at this point in the history
* Replace `function` with `fn`

---------

Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Jan 29, 2023
1 parent 3d153c5 commit 83913dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ClassAliasAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ public static function register(Shell $shell, string $classMapPath, array $inclu
{
return tap(
new static($shell, $classMapPath, $includedAliases, $excludedAliases),
function ($loader) {
spl_autoload_register([$loader, 'aliasClass']);
}
fn ($loader) => spl_autoload_register([$loader, 'aliasClass'])
);
}

Expand Down

0 comments on commit 83913dc

Please sign in to comment.