Skip to content

Commit 25b23fc

Browse files
author
Adam Benson
committed
Fix readme
1 parent 7c2d867 commit 25b23fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ $testObject = $testInjector->create(My\Test\Object::class, [
2828
Invocation usage
2929
````
3030
// Call the method 'createUser' on an existing object
31-
$testObject = $testInjector->invoke($instanceOfThing, "createUser");
31+
$result = $testInjector->invoke($instanceOfThing, "createUser");
3232
3333
// Parameter injection - will provide parameters either by type, name or position - otherwise resolve via mocking
34-
$testObject = $testInjector->invoke($instanceOfThing, "createUser", [
34+
$result = $testInjector->invoke($instanceOfThing, "createUser", [
3535
"enabled" => true, // Named
3636
7 => "fish", // Positional
3737
Logger::class => new Logger(), // Type

0 commit comments

Comments
 (0)