Merge pull request #1150 from kaigoh/patch-2
pad the $args array instead of ignoring errors
This commit is contained in:
commit
de9268ae12
|
|
@ -98,7 +98,7 @@ abstract class AbstractContainer extends AbstractElement
|
|||
// Special case for TextBreak
|
||||
// @todo Remove the `$count` parameter in 1.0.0 to make this element similiar to other elements?
|
||||
if ($element == 'TextBreak') {
|
||||
@list($count, $fontStyle, $paragraphStyle) = $args; // Suppress error
|
||||
list($count, $fontStyle, $paragraphStyle) = array_pad($args, 3, null);
|
||||
if ($count === null) {
|
||||
$count = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue