Skip to content

Commit

Permalink
Fix for "Uncaught PHP Exception PHPUnit\Framework\Error\Warning: ""co…
Browse files Browse the repository at this point in the history
…ntinue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?" at /app/vendor/formapro/yadm/src/Converter.php line 48"
  • Loading branch information
makasim committed May 10, 2019
1 parent f3fdb60 commit df6134f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function convertJsonPatchToMongoUpdate(array $diff, array $values)
if (static::isPathArray($op['path'])) {
$dotPath = self::pathToDotWithoutLastPart($op['path']);
if (array_key_exists($dotPath, $arrayFullReset)) {
continue;
continue 2;
}

$update['$set'][$dotPath] = array_get($dotPath, [], $values);
Expand Down

0 comments on commit df6134f

Please sign in to comment.