Skip to content

Commit c6e0140

Browse files
authored
[Serializer] Fix type error not be accessed before initialization
1 parent 1d238ee commit c6e0140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ClassMetadata implements ClassMetadataInterface
3939
* class' serialized representation. Do not access it. Use
4040
* {@link getClassDiscriminatorMapping()} instead.
4141
*/
42-
public ?ClassDiscriminatorMapping $classDiscriminatorMapping;
42+
public ?ClassDiscriminatorMapping $classDiscriminatorMapping = null;
4343

4444
/**
4545
* Constructs a metadata for the given class.

0 commit comments

Comments
 (0)