From dae7a950791342c33ea78c5f65eebce7ed2f3310 Mon Sep 17 00:00:00 2001 From: singin' whale Date: Thu, 21 Dec 2023 01:21:46 +0100 Subject: [PATCH] Fixed deprecation warning in DisableConstructorPatch.php Fixes the "Use of "parent" in callables is deprecated" deprecation error when a constructor with arguments is used. See [PHP RFC: Deprecate partially supported callables](https://wiki.php.net/rfc/deprecate_partially_supported_callables). --- src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php b/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php index 1e8158dad..624d94ee7 100644 --- a/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php +++ b/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php @@ -59,7 +59,7 @@ public function apply(ClassNode $node) $constructor->setCode(<<