Skip to content

Commit

Permalink
Fix example of DI injection as argument (tkotosz#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabor Szabo authored Jan 2, 2023
1 parent 831d4dd commit 292ddd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The `Behat service autowiring feature <https://github.com/Behat/Behat/pull/1071>
*/
public function theProductRepositorySuccessfullyInjectedAsArgument(ProductRepositoryInterface $productRepository)
{
if (!$this->productRepository instanceof ProductRepositoryInterface) {
if (!$productRepository instanceof ProductRepositoryInterface) {
throw new Exception('Something went wrong :(');
}
}
Expand Down

0 comments on commit 292ddd4

Please sign in to comment.