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.
2 parents f6900d8 + b6676cc commit f5fe0fcCopy full SHA for f5fe0fc
src/Validator/DataCollectingValidator.php
@@ -88,7 +88,9 @@ public function inContext(ExecutionContextInterface $context): ContextualValidat
88
89
public function onKernelRequest(GetResponseEvent $event): void
90
{
91
- if ($event->isMasterRequest()) {
+ if (method_exists($event, 'isMainRequest') && $event->isMainRequest()) {
92
+ $this->clearLastErrors();
93
+ } elseif ($event->isMasterRequest()) {
94
$this->clearLastErrors();
95
}
96
0 commit comments