Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d686e38

Browse files
minor #46713 [DoctrineBridge] Add missing break (Gigino Chianese)
This PR was merged into the 4.4 branch. Discussion ---------- [DoctrineBridge] Add missing break ~~This PR only adds the "no break" comment as requested on my last PR:~~ This PR only adds the missing break as requested on my last PR: #46676 (comment) I hope it's fine to not include the describing table. ~~The missing break is on purpose, so here is no real code change.~~ The missing break should not have caused any side effects. I have not changed any tests here, because both cases are already tested by these two lines: https://github.com/symfony/symfony/blob/7fc7acb1e4448762f438af03cadb2ce54e3918e0/src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php#L186-L187 Commits ------- 445b78a [DoctrineBridge] Add missing break
2 parents 7fc7acb + 445b78a commit d686e38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ public function getTypes($class, $property, array $context = [])
199199
case self::$useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY:
200200
return [new Type(Type::BUILTIN_TYPE_ARRAY, $nullable, null, true, new Type(Type::BUILTIN_TYPE_INT), $enumType ?? new Type(Type::BUILTIN_TYPE_STRING))];
201201
}
202+
break;
202203
case Type::BUILTIN_TYPE_INT:
203204
case Type::BUILTIN_TYPE_STRING:
204205
if ($enumType) {

0 commit comments

Comments
 (0)