Skip to content

Commit b20987e

Browse files
Merge branch '4.4'
* 4.4: [Validator] Set Length::$allowEmptyString to false when a NotBlank contraint is defined [FrameworkBundle] Dont reset the test container but the real one instead Import missing classes [SecurityBundle] test with doctrine-bundle 2
2 parents 53b59dd + a02c413 commit b20987e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Mapping/GenericMetadata.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ public function hasConstraints()
187187
*/
188188
public function findConstraints(string $group)
189189
{
190-
return isset($this->constraintsByGroup[$group])
191-
? $this->constraintsByGroup[$group]
192-
: [];
190+
return $this->constraintsByGroup[$group] ?? [];
193191
}
194192

195193
/**

0 commit comments

Comments
 (0)