File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ private static function getRealClass(string $class): string
208208 private static function getMappingValue ($ mapping , string $ key )
209209 {
210210 if ($ mapping instanceof JoinColumnMapping) {
211- return $ mapping ->$ key ;
211+ return $ mapping ->$ key ?? null ;
212212 }
213213
214214 return $ mapping [$ key ] ?? null ;
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ private function getPhpType(string $doctrineType): ?string
314314 private static function getMappingValue ($ mapping , string $ key )
315315 {
316316 if ($ mapping instanceof AssociationMapping || $ mapping instanceof EmbeddedClassMapping || $ mapping instanceof FieldMapping || $ mapping instanceof JoinColumnMapping) {
317- return $ mapping ->$ key ;
317+ return $ mapping ->$ key ?? null ;
318318 }
319319
320320 return $ mapping [$ key ] ?? null ;
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ private function getExistingUniqueFields(ClassMetadata $metadata): array
148148 private static function getFieldMappingValue ($ mapping , string $ key )
149149 {
150150 if ($ mapping instanceof FieldMapping) {
151- return $ mapping ->$ key ;
151+ return $ mapping ->$ key ?? null ;
152152 }
153153
154154 return $ mapping [$ key ] ?? null ;
You can’t perform that action at this time.
0 commit comments