Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 2d23acc

Browse files
committed
Don't return $instance in initializer callable doc
Zend\ServiceManager\Initializer\InitializerInterface::__invoke() does not return the instance, so the migration documentation should not either.
1 parent 3c3c3e5 commit 2d23acc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/book/migration.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,10 +892,9 @@ class FooInitializer implements InitializerInterface
892892
> $instance = $first;
893893
> }
894894
> if (! $instance implements FooAwareInterface) {
895-
> return $instance;
895+
> return;
896896
> }
897897
> $container->setFoo($services->get(FooInterface::class);
898-
> return $instance;
899898
> });
900899
> ```
901900
>

0 commit comments

Comments
 (0)