From 4159beb7ee15936059034790e42be98922961b59 Mon Sep 17 00:00:00 2001 From: Joao Jacome Date: Sat, 10 Sep 2022 13:31:50 +0100 Subject: [PATCH] cleanup Signed-off-by: Joao Jacome --- src/Accessor/DefaultAccessorStrategy.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Accessor/DefaultAccessorStrategy.php b/src/Accessor/DefaultAccessorStrategy.php index 16a927427..a3c25a326 100644 --- a/src/Accessor/DefaultAccessorStrategy.php +++ b/src/Accessor/DefaultAccessorStrategy.php @@ -113,10 +113,6 @@ public function setValue(object $object, $value, PropertyMetadata $metadata, Des throw new LogicException(sprintf('%s on %s is read only.', $metadata->name, $metadata->class)); } -// if (null === $value) { -// return; -// } - if (null !== $metadata->setter) { $object->{$metadata->setter}($value);