Skip to content

Commit 7d549df

Browse files
bug #50776 [Serializer] Fix type error not be accessed before initialization (shyim)
This PR was merged into the 6.3 branch. Discussion ---------- [Serializer] Fix type error not be accessed before initialization | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | shopware/shopware#3190 | License | MIT | Doc PR | Make the property like in Symfony 6.2, with 6.3 it got the type hint but the default value was missing Commits ------- 87236aa [Serializer] Fix type error not be accessed before initialization
2 parents 8ef8225 + 87236aa commit 7d549df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Serializer/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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy