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
@@ -380,36 +504,20 @@ public function getConfigTreeBuilder(): \Symfony\Component\Config\Definition\Bui
380
504
) {
381
505
thrownew \InvalidArgumentException(sprintf('The value should be one of [%s], got %s.', implode(', ', $endpoints[$item['type']]), json_encode($item['method'], \JSON_THROW_ON_ERROR)));
382
506
}
507
+
if (\in_array($item['type'], $doubleEndpoints) && !\array_key_exists('code', $item)) {
508
+
thrownew \InvalidArgumentException(sprintf('The %s type should have a "code" field set.', $item['type']));
509
+
}
383
510
384
511
return$item;
385
512
})
386
513
->end()
387
-
->validate()
388
-
->ifArray()
389
-
->then(function (array$item) {
390
-
if (\in_array($item['type'], self::$doubleEndpoints) && !\array_key_exists('code', $item)) {
391
-
thrownew \InvalidArgumentException(sprintf('The %s type should have a "code" field set.', $item['type']));
0 commit comments