Update AbstractContainer.php

Suppressing the PHP warning doesn't seem to work. Padding the $args array does.
This commit is contained in:
Kai Gohegan 2017-10-09 13:19:23 +01:00 committed by GitHub
parent 0beeb275fe
commit 4084d4f191

View File

@ -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;
}