From 82c18d38486fa16042efd9f2f7b2d77d07d0e2db Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 21 Jul 2021 07:58:05 +0100 Subject: [PATCH] Type fixes --- src/Support/Reflection.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Support/Reflection.php b/src/Support/Reflection.php index e06b0280..819ad4a5 100644 --- a/src/Support/Reflection.php +++ b/src/Support/Reflection.php @@ -109,10 +109,6 @@ final class Reflection } } - if ($reflectionProperty === null) { - throw ShouldNotHappen::fromMessage('Reflection property not found.'); - } - $reflectionProperty->setAccessible(true); return $reflectionProperty->getValue($object); @@ -143,10 +139,6 @@ final class Reflection } } - if ($reflectionProperty === null) { - throw ShouldNotHappen::fromMessage('Reflection property not found.'); - } - $reflectionProperty->setAccessible(true); $reflectionProperty->setValue($object, $value); }