We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba9c8c commit 143e8d1Copy full SHA for 143e8d1
src/JsonSchema/Constraints/Constraint.php
@@ -42,10 +42,15 @@ abstract class Constraint extends BaseConstraint implements ConstraintInterface
42
protected function incrementPath(JsonPointer $path = null, $i)
43
{
44
$path = $path ?: new JsonPointer('');
45
+
46
+ if ($i === null || $i === '') {
47
+ return $path;
48
+ }
49
50
$path = $path->withPropertyPaths(
51
array_merge(
52
$path->getPropertyPaths(),
- array_filter(array($i), 'strlen')
53
+ array($i)
54
)
55
);
56
0 commit comments