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 @@ -480,7 +480,7 @@ protected function validatePrototypeNode(PrototypedArrayNode $node)
480
480
);
481
481
}
482
482
483
- if (null !== $ this ->key && (null === $ this ->addDefaultChildren || is_integer ($ this ->addDefaultChildren ) && $ this ->addDefaultChildren > 0 )) {
483
+ if (null !== $ this ->key && (null === $ this ->addDefaultChildren || is_int ($ this ->addDefaultChildren ) && $ this ->addDefaultChildren > 0 )) {
484
484
throw new InvalidDefinitionException (
485
485
sprintf ('->addDefaultChildrenIfNoneSet() should set default children names as ->useAttributeAsKey() is used at path "%s" ' , $ path )
486
486
);
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ public function setAddChildrenIfNoneSet($children = array('defaults'))
131
131
if (null === $ children ) {
132
132
$ this ->defaultChildren = array ('defaults ' );
133
133
} else {
134
- $ this ->defaultChildren = is_integer ($ children ) && $ children > 0 ? range (1 , $ children ) : (array ) $ children ;
134
+ $ this ->defaultChildren = is_int ($ children ) && $ children > 0 ? range (1 , $ children ) : (array ) $ children ;
135
135
}
136
136
}
137
137
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ protected static function getXmlErrors($internalErrors)
215
215
LIBXML_ERR_WARNING == $ error ->level ? 'WARNING ' : 'ERROR ' ,
216
216
$ error ->code ,
217
217
trim ($ error ->message ),
218
- $ error ->file ? $ error -> file : 'n/a ' ,
218
+ $ error ->file ?: 'n/a ' ,
219
219
$ error ->line ,
220
220
$ error ->column
221
221
);
You can’t perform that action at this time.
0 commit comments