File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
src/JsonSchema/Constraints Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ $config
26
26
'trailing_comma_in_multiline_array ' => false ,
27
27
'yoda_style ' => false ,
28
28
'phpdoc_types_order ' => array ('null_adjustment ' => 'none ' , 'sort_algorithm ' => 'none ' ),
29
+ 'no_superfluous_phpdoc_tags ' => false ,
29
30
))
30
31
->setFinder ($ finder )
31
32
;
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ matrix:
28
28
dist : trusty
29
29
allow_failures :
30
30
- php : nightly
31
+ - php : hhvm-3.18
31
32
32
33
before_install :
33
34
- if [[ "$WITH_COVERAGE" != "true" && "$TRAVIS_PHP_VERSION" != "hhvm-3.18" && "$TRAVIS_PHP_VERSION" != "nightly" && "$TRAVIS_PHP_VERSION" != "7.1" ]]; then phpenv config-rm xdebug.ini; fi
Original file line number Diff line number Diff line change @@ -42,10 +42,15 @@ abstract class Constraint extends BaseConstraint implements ConstraintInterface
42
42
protected function incrementPath (JsonPointer $ path = null , $ i )
43
43
{
44
44
$ path = $ path ?: new JsonPointer ('' );
45
+
46
+ if ($ i === null || $ i === '' ) {
47
+ return $ path ;
48
+ }
49
+
45
50
$ path = $ path ->withPropertyPaths (
46
51
array_merge (
47
52
$ path ->getPropertyPaths (),
48
- array_filter ( array ($ i), ' strlen ' )
53
+ array ($ i )
49
54
)
50
55
);
51
56
You can’t perform that action at this time.
0 commit comments