Skip to content

Commit

Permalink
* Adapted the annotated type on the GraphNavigator.php for $exclusion…
Browse files Browse the repository at this point in the history
…Strategy

* Removed unneeded @todo
  • Loading branch information
slava-v authored and Veaceslav Vasilache committed May 24, 2022
1 parent 02d8e87 commit 4c230d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/GraphNavigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace JMS\Serializer;

use JMS\Serializer\Exclusion\ExclusionStrategyInterface;
use JMS\Serializer\Exclusion\DisjunctExclusionStrategy;

/**
* Handles traversal along the object graph.
Expand Down Expand Up @@ -32,7 +32,7 @@ abstract class GraphNavigator implements GraphNavigatorInterface
*/
protected $format;
/**
* @var ExclusionStrategyInterface
* @var DisjunctExclusionStrategy
*/
protected $exclusionStrategy;

Expand Down
1 change: 0 additions & 1 deletion src/Metadata/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c230d2

Please sign in to comment.