Skip to content

Commit ed166fc

Browse files
clxmstaabstaabm
authored andcommitted
fix
1 parent 9a29a1a commit ed166fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/QueryReflection/QuerySimulation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
7373
return null;
7474
}
7575

76-
if ($paramType instanceof ObjectType && $paramType->isInstanceOf(\DateTimeInterface::class)) {
76+
// TODO the dateformat should be taken from bound-parameter-types, see https://github.com/staabm/phpstan-dba/pull/342
77+
if ($paramType instanceof ObjectType && $paramType->isInstanceOf(\DateTimeInterface::class)->yes()) {
7778
return date(self::DATE_FORMAT, 0);
7879
}
7980

0 commit comments

Comments
 (0)