Skip to content

Commit

Permalink
Merge pull request #908 from asuri0n/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation in TraceableMetadataFactory
  • Loading branch information
goetas committed Nov 3, 2022
2 parents 79dc368 + e87bb9f commit aadf3d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Debug/TraceableMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace JMS\SerializerBundle\Debug;

use Metadata\AdvancedMetadataFactoryInterface;
use Metadata\ClassHierarchyMetadata;
use Metadata\ClassMetadata;
use Metadata\MergeableClassMetadata;

/**
* @internal
Expand Down Expand Up @@ -32,6 +34,9 @@ public function getAllClassNames(): array
return $this->metadataFactory->getAllClassNames();
}

/**
* @return ClassHierarchyMetadata|MergeableClassMetadata|null
*/
public function getMetadataForClass(string $className)
{
$metadata = $this->metadataFactory->getMetadataForClass($className);
Expand Down

0 comments on commit aadf3d1

Please sign in to comment.