From 5e64010eb7741811ef1d855a681f09aa35858856 Mon Sep 17 00:00:00 2001 From: Benno Lang Date: Thu, 18 May 2023 16:22:54 +0930 Subject: [PATCH] Fix: exception thrown when serialize called on ConfigObject Specifically when \Oro\Bundle\EntityBundle\DataCollector\Analyzer \DuplicateQueryAnalyzer::getIdenticalQueries generates a query key for a query which has a param which is an \Oro\Component\Config \Common\ConfigObject --- src/Oro/Component/Config/Common/ConfigObject.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Oro/Component/Config/Common/ConfigObject.php b/src/Oro/Component/Config/Common/ConfigObject.php index 492f61f53cd..85bcfa4015d 100644 --- a/src/Oro/Component/Config/Common/ConfigObject.php +++ b/src/Oro/Component/Config/Common/ConfigObject.php @@ -326,4 +326,12 @@ public function validateConfiguration(ConfigurationInterface $configuration) return $this; } + + /** + * @return array + */ + public function __sleep(): array + { + return ['params']; + } }