1
0
mirror of synced 2024-12-13 22:56:04 +03:00

add bool detection when inferring type

This commit is contained in:
Klein Florian 2012-10-10 11:20:41 +02:00
parent 65fabc20c9
commit 7f8af83b5b

View File

@ -50,6 +50,10 @@ class ParameterTypeInferer
return Type::INTEGER; return Type::INTEGER;
} }
if (is_bool($value)) {
return Type::BOOLEAN;
}
if ($value instanceof \DateTime) { if ($value instanceof \DateTime) {
return Type::DATETIME; return Type::DATETIME;
} }