Make styles to work as a instance property of PhpWord #733
Annotations
10 errors
Run phpstan:
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.
|
Run phpstan:
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.
|
Run phpstan:
src/PhpWord/PhpWord.php#L482
Method PhpOffice\PhpWord\PhpWord::addTableStyle() should return PhpOffice\PhpWord\Style\Table but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/PhpWord.php#L468
Method PhpOffice\PhpWord\PhpWord::addTitleStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/PhpWord.php#L448
Method PhpOffice\PhpWord\PhpWord::addNumberingStyle() should return PhpOffice\PhpWord\Style\Numbering but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/PhpWord.php#L433
Method PhpOffice\PhpWord\PhpWord::addLinkStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/PhpWord.php#L420
Method PhpOffice\PhpWord\PhpWord::addFontStyle() should return PhpOffice\PhpWord\Style\Font but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/PhpWord.php#L406
Method PhpOffice\PhpWord\PhpWord::addParagraphStyle() should return PhpOffice\PhpWord\Style\Paragraph but returns PhpOffice\PhpWord\Style\AbstractStyle.
|
Run phpstan:
src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has parameter $styles with no type specified.
|
Run phpstan:
src/PhpWord/Element/Title.php#L90
Method PhpOffice\PhpWord\Element\Title::setStyleByDepth() has no return type specified.
|
Loading