Skip to content

Commit

Permalink
rollback object return type for delegator callback
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Oct 10, 2022
1 parent e71a83a commit 0c9036e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ private function getFactory(string $name): callable
*/
private function createDelegatorFromName(string $name, ?array $options = null)
{
$creationCallback = function () use ($name, $options): object {
$creationCallback = function () use ($name, $options) {
// Code is inlined for performance reason, instead of abstracting the creation
$factory = $this->getFactory($name);
return $factory($this->creationContext, $name, $options);
Expand Down

0 comments on commit 0c9036e

Please sign in to comment.