@@ -157,8 +157,11 @@ public function getTypes($class, $property, array $context = [])
157157 case Type::BUILTIN_TYPE_OBJECT :
158158 switch ($ typeOfField ) {
159159 case self ::$ useDeprecatedConstants ? DBALType::DATE : Types::DATE_MUTABLE :
160+ // no break
160161 case self ::$ useDeprecatedConstants ? DBALType::DATETIME : Types::DATETIME_MUTABLE :
162+ // no break
161163 case self ::$ useDeprecatedConstants ? DBALType::DATETIMETZ : Types::DATETIMETZ_MUTABLE :
164+ // no break
162165 case 'vardatetime ' :
163166 case self ::$ useDeprecatedConstants ? DBALType::TIME : Types::TIME_MUTABLE :
164167 return [new Type (Type::BUILTIN_TYPE_OBJECT , $ nullable , 'DateTime ' )];
@@ -177,6 +180,7 @@ public function getTypes($class, $property, array $context = [])
177180 case Type::BUILTIN_TYPE_ARRAY :
178181 switch ($ typeOfField ) {
179182 case self ::$ useDeprecatedConstants ? DBALType::TARRAY : 'array ' :
183+ // no break
180184 case 'json_array ' :
181185 return [new Type (Type::BUILTIN_TYPE_ARRAY , $ nullable , null , true )];
182186
@@ -229,32 +233,43 @@ private function getPhpType($doctrineType)
229233 {
230234 switch ($ doctrineType ) {
231235 case self ::$ useDeprecatedConstants ? DBALType::SMALLINT : Types::SMALLINT :
236+ // no break
232237 case self ::$ useDeprecatedConstants ? DBALType::INTEGER : Types::INTEGER :
233238 return Type::BUILTIN_TYPE_INT ;
234239
235240 case self ::$ useDeprecatedConstants ? DBALType::FLOAT : Types::FLOAT :
236241 return Type::BUILTIN_TYPE_FLOAT ;
237242
238243 case self ::$ useDeprecatedConstants ? DBALType::BIGINT : Types::BIGINT :
244+ // no break
239245 case self ::$ useDeprecatedConstants ? DBALType::STRING : Types::STRING :
246+ // no break
240247 case self ::$ useDeprecatedConstants ? DBALType::TEXT : Types::TEXT :
248+ // no break
241249 case self ::$ useDeprecatedConstants ? DBALType::GUID : Types::GUID :
250+ // no break
242251 case self ::$ useDeprecatedConstants ? DBALType::DECIMAL : Types::DECIMAL :
243252 return Type::BUILTIN_TYPE_STRING ;
244253
245254 case self ::$ useDeprecatedConstants ? DBALType::BOOLEAN : Types::BOOLEAN :
246255 return Type::BUILTIN_TYPE_BOOL ;
247256
248257 case self ::$ useDeprecatedConstants ? DBALType::BLOB : Types::BLOB :
258+ // no break
249259 case 'binary ' :
250260 return Type::BUILTIN_TYPE_RESOURCE ;
251261
252262 case self ::$ useDeprecatedConstants ? DBALType::OBJECT : Types::OBJECT :
263+ // no break
253264 case self ::$ useDeprecatedConstants ? DBALType::DATE : Types::DATE_MUTABLE :
265+ // no break
254266 case self ::$ useDeprecatedConstants ? DBALType::DATETIME : Types::DATETIME_MUTABLE :
267+ // no break
255268 case self ::$ useDeprecatedConstants ? DBALType::DATETIMETZ : Types::DATETIMETZ_MUTABLE :
269+ // no break
256270 case 'vardatetime ' :
257271 case self ::$ useDeprecatedConstants ? DBALType::TIME : Types::TIME_MUTABLE :
272+ // no break
258273 case 'date_immutable ' :
259274 case 'datetime_immutable ' :
260275 case 'datetimetz_immutable ' :
@@ -263,7 +278,9 @@ private function getPhpType($doctrineType)
263278 return Type::BUILTIN_TYPE_OBJECT ;
264279
265280 case self ::$ useDeprecatedConstants ? DBALType::TARRAY : 'array ' :
281+ // no break
266282 case self ::$ useDeprecatedConstants ? DBALType::SIMPLE_ARRAY : Types::SIMPLE_ARRAY :
283+ // no break
267284 case 'json_array ' :
268285 return Type::BUILTIN_TYPE_ARRAY ;
269286 }
0 commit comments