From 4c230d25c7ce21fcefa608ea7491ef4d4c90594d Mon Sep 17 00:00:00 2001 From: slava-v Date: Fri, 20 Nov 2020 20:26:29 +0100 Subject: [PATCH] * Adapted the annotated type on the GraphNavigator.php for $exclusionStrategy * Removed unneeded @todo --- src/GraphNavigator.php | 4 ++-- src/Metadata/Driver/AnnotationDriver.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GraphNavigator.php b/src/GraphNavigator.php index e393e5680..10ca13e4a 100644 --- a/src/GraphNavigator.php +++ b/src/GraphNavigator.php @@ -4,7 +4,7 @@ namespace JMS\Serializer; -use JMS\Serializer\Exclusion\ExclusionStrategyInterface; +use JMS\Serializer\Exclusion\DisjunctExclusionStrategy; /** * Handles traversal along the object graph. @@ -32,7 +32,7 @@ abstract class GraphNavigator implements GraphNavigatorInterface */ protected $format; /** - * @var ExclusionStrategyInterface + * @var DisjunctExclusionStrategy */ protected $exclusionStrategy; diff --git a/src/Metadata/Driver/AnnotationDriver.php b/src/Metadata/Driver/AnnotationDriver.php index cc85112ba..8cda61bc3 100644 --- a/src/Metadata/Driver/AnnotationDriver.php +++ b/src/Metadata/Driver/AnnotationDriver.php @@ -186,7 +186,6 @@ public function loadMetadataForClass(\ReflectionClass $class): ?BaseClassMetadat $propertyMetadata->serializedName = $annot->name; } elseif ($annot instanceof SkipWhenEmpty) { $propertyMetadata->skipWhenEmpty = true; - // @Todo: Check the context about the configuration whether skipWhenEmpty on all properties. } elseif ($annot instanceof Expose) { $isExpose = true; if (null !== $annot->if) {