diff --git a/src/Mockery/Type/ShouldReceiveDynamicReturnTypeExtension.php b/src/Mockery/Type/ShouldReceiveDynamicReturnTypeExtension.php index e831255..878a697 100644 --- a/src/Mockery/Type/ShouldReceiveDynamicReturnTypeExtension.php +++ b/src/Mockery/Type/ShouldReceiveDynamicReturnTypeExtension.php @@ -14,7 +14,7 @@ class ShouldReceiveDynamicReturnTypeExtension implements DynamicMethodReturnType public function getClass(): string { - return \Mockery\MockInterface::class; + return 'Mockery\\MockInterface'; } public function isMethodSupported(MethodReflection $methodReflection): bool