We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 638e306 commit 13694d8Copy full SHA for 13694d8
1 file changed
src/QueryReflection/QuerySimulation.php
@@ -73,7 +73,8 @@ public static function simulateParamValueType(Type $paramType, bool $preparedPar
73
return null;
74
}
75
76
- if ($paramType instanceof ObjectType && $paramType->isInstanceOf(\DateTimeInterface::class)) {
+ // 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()) {
78
return date(self::DATE_FORMAT, 0);
79
80
0 commit comments