Skip to content

Commit

Permalink
refactor: Add ArrowFunction return type #1183
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Jan 1, 2025
1 parent c37836f commit a52e5f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Bootloader/StorageBootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public function init(BinderInterface $binder, EnvironmentInterface $env): void
return $manager;
});

$binder->bindSingleton(Storage::class, static fn (StorageInterface $manager) => $manager);
$binder->bindSingleton(Storage::class, static fn (StorageInterface $manager): StorageInterface => $manager);

$binder->bindSingleton(BucketInterface::class, static fn (StorageInterface $manager) => $manager->bucket());
$binder->bindSingleton(BucketInterface::class, static fn (StorageInterface $manager): BucketInterface => $manager->bucket());

$binder->bindSingleton(Bucket::class, static fn (BucketInterface $storage) => $storage);
$binder->bindSingleton(Bucket::class, static fn (BucketInterface $storage): BucketInterface => $storage);
}
}

0 comments on commit a52e5f9

Please sign in to comment.