Explorar el Código

check for existence of adjusted normalisedParentPath

Mark Jenkins hace 2 años
padre
commit
5bd4d568f8
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 {