8000 Add boolean type hinting to avoid warnings · thecodingmachine/tdbm@074c34f · GitHub
[go: up one dir, main page]

Skip to content

Commit 074c34f

Browse files
nguyenkmoufmouf
authored andcommitted
Add boolean type hinting to avoid warnings
1 parent 8d31c7e commit 074c34f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Utils/DbalUtils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public static function generateTypes(array $parameters): array
3434
$types[$key] = Connection::PARAM_INT_ARRAY;
3535
} elseif (is_int($value)) {
3636
$types[$key] = ParameterType::INTEGER;
37+
} elseif (is_bool($value)) {
38+
$types[$key] = ParameterType::BOOLEAN;
3739
}
3840
}
3941

0 commit comments

Comments
 (0)
0