Skip to content

Commit 628acfd

Browse files
committed
[Validator] Add strict comparison
1 parent c8b4aac commit 628acfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/TypeValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function validate($value, Constraint $constraint)
3737

3838
foreach ($types as $type) {
3939
$type = strtolower($type);
40-
$type = 'boolean' == $type ? 'bool' : $type;
40+
$type = 'boolean' === $type ? 'bool' : $type;
4141
$isFunction = 'is_'.$type;
4242
$ctypeFunction = 'ctype_'.$type;
4343
if (\function_exists($isFunction) && $isFunction($value)) {

0 commit comments

Comments
 (0)