File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,7 @@ protected function validatePrototypeNode(PrototypedArrayNode $node)
472
472
);
473
473
}
474
474
475
- if (null !== $ this ->key && (null === $ this ->addDefaultChildren || is_integer ($ this ->addDefaultChildren ) && $ this ->addDefaultChildren > 0 )) {
475
+ if (null !== $ this ->key && (null === $ this ->addDefaultChildren || is_int ($ this ->addDefaultChildren ) && $ this ->addDefaultChildren > 0 )) {
476
476
throw new InvalidDefinitionException (
477
477
sprintf ('->addDefaultChildrenIfNoneSet() should set default children names as ->useAttributeAsKey() is used at path "%s" ' , $ path )
478
478
);
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public function setAddChildrenIfNoneSet($children = array('defaults'))
117
117
if (null === $ children ) {
118
118
$ this ->defaultChildren = array ('defaults ' );
119
119
} else {
120
- $ this ->defaultChildren = is_integer ($ children ) && $ children > 0 ? range (1 , $ children ) : (array ) $ children ;
120
+ $ this ->defaultChildren = is_int ($ children ) && $ children > 0 ? range (1 , $ children ) : (array ) $ children ;
121
121
}
122
122
}
123
123
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ protected static function getXmlErrors($internalErrors)
222
222
LIBXML_ERR_WARNING == $ error ->level ? 'WARNING ' : 'ERROR ' ,
223
223
$ error ->code ,
224
224
trim ($ error ->message ),
225
- $ error ->file ? $ error -> file : 'n/a ' ,
225
+ $ error ->file ?: 'n/a ' ,
226
226
$ error ->line ,
227
227
$ error ->column
228
228
);
You can’t perform that action at this time.
0 commit comments