Skip to content

Make styles to work as a instance property of PhpWord #734

Make styles to work as a instance property of PhpWord

Make styles to work as a instance property of PhpWord #734

Triggered via pull request March 7, 2025 08:25
Status Failure
Total duration 21m 48s
Artifacts

php.yml

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

Annotations

88 errors
PHP Static Analysis (8.3): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (8.3): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.3): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (8.3): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (8.4): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (8.4): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.4): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (8.4): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (8.0): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (8.0): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.0): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (8.0): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (8.2): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (8.2): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.2): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (8.2): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (7.4): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (7.4): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.4): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (7.4): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP CS Fixer
Process completed with exit code 8.
PHP Static Analysis (7.3): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (7.3): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.3): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (7.3): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (8.1): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (8.1): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (8.1): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (8.1): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHP Static Analysis (7.2): src/PhpWord/Writer/ODText/Style/Paragraph.php#L83
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Paragraph will always evaluate to false.
PHP Static Analysis (7.2): src/PhpWord/Writer/ODText/Style/Paragraph.php#L78
Instanceof between PhpOffice\PhpWord\Writer\Word2007\Style\AbstractStyle|null and PhpOffice\PhpWord\Style\Font will always evaluate to false.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
PHP Static Analysis (7.2): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
PHP Static Analysis (7.2): src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
PHPUnit 8.1
Process completed with exit code 2.
PHPUnit 8.0
Process completed with exit code 2.
PHPUnit 7.2
Process completed with exit code 2.
PHPUnit 8.2
Process completed with exit code 2.
PHPUnit 7.1
Process completed with exit code 2.
PHPUnit 7.4
Process completed with exit code 2.
PHPUnit 7.3
Process completed with exit code 2.