We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b80f3 commit 29dcb56Copy full SHA for 29dcb56
src/Symfony/Component/Serializer/Mapping/ClassMetadata.php
@@ -78,11 +78,7 @@ public function merge(ClassMetadataInterface $classMetadata): void
78
79
public function getReflectionClass(): \ReflectionClass
80
{
81
- if (!$this->reflClass) {
82
- $this->reflClass = new \ReflectionClass($this->getName());
83
- }
84
-
85
- return $this->reflClass;
+ return $this->reflClass ??= new \ReflectionClass($this->getName());
86
}
87
88
public function getClassDiscriminatorMapping(): ?ClassDiscriminatorMapping
0 commit comments