From e45a224ea6460515e76e2de7a8d65e3b039226f6 Mon Sep 17 00:00:00 2001 From: Eirik Stanghelle Morland Date: Wed, 18 Sep 2024 19:41:52 +0200 Subject: [PATCH] Delete patches directory --- patches/mock-obj.patch | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 patches/mock-obj.patch diff --git a/patches/mock-obj.patch b/patches/mock-obj.patch deleted file mode 100644 index 0f4a931..0000000 --- a/patches/mock-obj.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff --git a/src/Generator.php b/src/Generator.php -index 28a05b1..e1eb478 100644 ---- a/src/Generator.php -+++ b/src/Generator.php -@@ -916,7 +916,7 @@ private function generateMockedMethodDefinitionFromExisting(ReflectionMethod $me - } - - if ($method->hasReturnType()) { -- $returnType = (string) $method->getReturnType(); -+ $returnType = $method->getReturnType()->getName(); - } else { - $returnType = ''; - } -@@ -1086,8 +1086,8 @@ private function getMethodParameters(ReflectionMethod $method, $forCall = false) - $nullable = '?'; - } - -- if ($parameter->hasType() && (string) $parameter->getType() !== 'self') { -- $typeDeclaration = (string) $parameter->getType() . ' '; -+ if ($parameter->hasType() && $parameter->getType()->getName() !== 'self') { -+ $typeDeclaration = $parameter->getType()->getName() . ' '; - } elseif ($parameter->isArray()) { - $typeDeclaration = 'array '; - } elseif ($parameter->isCallable()) {