add bool detection when inferring type
This commit is contained in:
parent
65fabc20c9
commit
7f8af83b5b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user