Skip to content

RTF Writer: Paragraph - Add Missing Features #1229

RTF Writer: Paragraph - Add Missing Features

RTF Writer: Paragraph - Add Missing Features #1229

Triggered via pull request October 14, 2025 02:08
Status Failure
Total duration 21m 28s
Artifacts

php.yml

on: pull_request
PHP CS Fixer
41s
PHP CS Fixer
PHP Mess Detector
24s
PHP Mess Detector
Matrix: PHP Static Analysis
Matrix: phpunit
Matrix: Check samples
Fit to window
Zoom out
Zoom in

Annotations

77 errors
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.0): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (8.0): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (8.0): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (8.0): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (8.0): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.2): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (8.2): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (8.2): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (8.2): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (8.2): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHP Static Analysis (7.2)
Process completed with exit code 1.
PHP Static Analysis (7.2): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (7.2): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (7.2): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (7.2): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.1): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (8.1): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (8.1): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (8.1): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (8.1): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (7.4): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (7.4): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (7.4): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (7.4): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (7.4): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHPUnit 8.2
Process completed with exit code 2.
PHPUnit 8.1
Process completed with exit code 2.
PHPUnit 7.4
Process completed with exit code 2.
PHPUnit 7.1
Process completed with exit code 2.
PHP Static Analysis (7.3)
Process completed with exit code 1.
PHP Static Analysis (7.3): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (7.3): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (7.3): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (7.3): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHPUnit 7.2
Process completed with exit code 2.
PHP Static Analysis (8.4): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (8.4): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (8.4): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.4): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.4): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (8.4): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (8.4): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (8.4): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (8.4): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHP Static Analysis (8.3): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L201
Access to an undefined property DOMNameSpaceNode|DOMNode::$attributes.
PHP Static Analysis (8.3): tests/PhpWordTests/Writer/HTML/Element/TableTest.php#L165
Offset 0 might not exist on array{0?: string}.
PHP Static Analysis (8.3): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L87
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.3): tests/PhpWordTests/Writer/HTML/Element/RubyTest.php#L52
Cannot access property $length on DOMNodeList<DOMNameSpaceNode|DOMNode>|false.
PHP Static Analysis (8.3): src/PhpWord/Writer/RTF/Style/Spacing.php#L64
Strict comparison using !== between '\\slmult0'|'\\slmult1' and null will always evaluate to true.
PHP Static Analysis (8.3): src/PhpWord/Writer/RTF/Style/Spacing.php#L49
Undefined variable: $content
PHP Static Analysis (8.3): src/PhpWord/Writer/RTF/Style/Paragraph.php#L100
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Spacing given.
PHP Static Analysis (8.3): src/PhpWord/Writer/RTF/Style/Paragraph.php#L99
Parameter #2 $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() expects PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle|null, PhpOffice\PhpWord\Style\Indentation|null given.
PHP Static Analysis (8.3): src/PhpWord/Writer/RTF/Style/AbstractStyle.php#L117
Parameter $style of method PhpOffice\PhpWord\Writer\RTF\Style\AbstractStyle::writeChildStyle() has invalid type PhpOffice\PhpWord\Writer\RTF\Style\PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/Reader/Word2007/AbstractPart.php#L372
Offset bool|int|string might not exist on list<string|null>.
PHPUnit 8.0
Process completed with exit code 2.
PHPUnit 7.3
Process completed with exit code 2.