Skip to content

Commit

Permalink
add return type to singleton clousure
Browse files Browse the repository at this point in the history
  • Loading branch information
Dropelikeit committed Sep 16, 2020
1 parent 7e540be commit de7507b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function register()
'debug' => $debug,
]);

$this->app->singleton(ResponseFactory::class, function () use ($config) {
$this->app->singleton(ResponseFactory::class, function () use ($config): ResponseFactory {
return new ResponseFactory((new Factory())->getSerializer($config), $config);
});
}
Expand Down

0 comments on commit de7507b

Please sign in to comment.