diff --git a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php index d0db3946e47f7..38bf96cc89a30 100644 --- a/src/Symfony/Component/PropertyAccess/PropertyAccessor.php +++ b/src/Symfony/Component/PropertyAccess/PropertyAccessor.php @@ -884,7 +884,7 @@ private function getPropertyPath($propertyPath) } $propertyPathInstance = new PropertyPath($propertyPath); - if (isset($item)) { + if (isset($item) && $item->get() instanceof PropertyPathInterface) { $item->set($propertyPathInstance); $this->cacheItemPool->save($item); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: