Explorar o código

check for existence of adjusted normalisedParentPath

Mark Jenkins %!s(int64=2) %!d(string=hai) anos
pai
achega
5bd4d568f8
Modificáronse 1 ficheiros con 4 adicións e 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 {