From f2a8053dd69fa527438e3361d858ec510ef9d6ee Mon Sep 17 00:00:00 2001 From: func0der <529819+func0der@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:43:05 +0100 Subject: [PATCH] Add @not-deprecated annotation to avoid PHPStan errors Context: https://github.com/phpstan/phpstan-deprecation-rules/issues/76 Solution: Add `@not-deprecated` annotation. --- src/ProphecyTrait.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ProphecyTrait.php b/src/ProphecyTrait.php index 7fb7d54..34ff25d 100644 --- a/src/ProphecyTrait.php +++ b/src/ProphecyTrait.php @@ -35,6 +35,7 @@ trait ProphecyTrait * @throws InterfaceNotFoundException * * @psalm-param class-string|null $classOrInterface + * @not-deprecated */ protected function prophesize(?string $classOrInterface = null): ObjectProphecy {