Przeglądaj źródła

check for existence of adjusted normalisedParentPath

Mark Jenkins 2 lat temu
rodzic
commit
5bd4d568f8
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      src/Extracting/ParsesValidationRules.php

+ 4 - 0
src/Extracting/ParsesValidationRules.php

@@ -658,6 +658,10 @@ trait ParsesValidationRules
                         $parentPath = substr($parentPath, 0, -2);
                         $normalisedParentPath = str_replace('.*.', '[].', $parentPath);
 
+                        if (!empty($results[$normalisedParentPath])) {
+                            break;
+                        }
+
                         $type = 'object[]';
                         $example = [[]];
                     } else {