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

Commit a190afe

Browse files
author
Ralf Eggert
committed
Error in Quick-Start with build() method
If we request an instance with the `build()` method shouldn't we get a new instance for every call? If so, the comparison should print `false` instead of `true`, shouldn't it?
1 parent a87cb30 commit a190afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ You can use the `build()` method to retrieve discrete instances for a service:
6363
$object1 = $serviceManager->build(stdClass::class);
6464
$object2 = $serviceManager->build(stdClass::class);
6565

66-
var_dump($object1 === $object2); // prints "true"
66+
var_dump($object1 === $object2); // prints "false"
6767
```

0 commit comments

Comments
 (0)