From 292ddd4740122130426b9b97ca0688d067420611 Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Mon, 2 Jan 2023 10:16:36 +0100 Subject: [PATCH] Fix example of DI injection as argument (#9) --- .../inject-service-to-behat-context-as-behat-step-argument.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/usage/inject-service-to-behat-context-as-behat-step-argument.rst b/docs/guide/usage/inject-service-to-behat-context-as-behat-step-argument.rst index 64c8989..196c5c4 100644 --- a/docs/guide/usage/inject-service-to-behat-context-as-behat-step-argument.rst +++ b/docs/guide/usage/inject-service-to-behat-context-as-behat-step-argument.rst @@ -33,7 +33,7 @@ The `Behat service autowiring feature */ public function theProductRepositorySuccessfullyInjectedAsArgument(ProductRepositoryInterface $productRepository) { - if (!$this->productRepository instanceof ProductRepositoryInterface) { + if (!$productRepository instanceof ProductRepositoryInterface) { throw new Exception('Something went wrong :('); } }