You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'exception' => newInvalidArgumentException(sprintf('Invalid value for "%s[%s]". Use date/time string supported by %s::__construct', $property, $parameterType, $dateTimeClass)),
if (__CLASS__ !== $r->getDeclaringClass()->getName()) {
143
+
@trigger_error(sprintf('Method %s() will have 9 non-optional arguments in API Platform 3.0. Not passing arguments 7-9 is deprecated since API Platform 2.4.', __FUNCTION__), E_USER_DEPRECATED);
144
+
}
145
+
}
146
+
}
147
+
133
148
$type = (string) $type;
134
-
try {
135
-
$value = false === strpos($type, '_immutable') ? new \DateTime($value) : new \DateTimeImmutable($value);
136
-
} catch (\Exception$e) {
137
-
// Silently ignore this filter if it can not be transformed to a \DateTime
138
-
$this->logger->notice('Invalid filter ignored', [
139
-
'exception' => newInvalidArgumentException(sprintf('The field "%s" has a wrong date format. Use one accepted by the \DateTime constructor', $field)),
0 commit comments