Skip to content

Commit 4084d4f

Browse files
author
Kai Gohegan
authored
Update AbstractContainer.php
Suppressing the PHP warning doesn't seem to work. Padding the $args array does.
1 parent 0beeb27 commit 4084d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __call($function, $args)
9898
// Special case for TextBreak
9999
// @todo Remove the `$count` parameter in 1.0.0 to make this element similiar to other elements?
100100
if ($element == 'TextBreak') {
101-
@list($count, $fontStyle, $paragraphStyle) = $args; // Suppress error
101+
list($count, $fontStyle, $paragraphStyle) = array_pad($args, 3, null);
102102
if ($count === null) {
103103
$count = 1;
104104
}

0 commit comments

Comments
 (0)