Skip to content

Fixed PHPStan errors #793

Fixed PHPStan errors

Fixed PHPStan errors #793

Status Failure
Total duration 22m 21s
Artifacts

php.yml

on: push
PHP CS Fixer
33s
PHP CS Fixer
PHP Mess Detector
21s
PHP Mess Detector
Matrix: PHP Static Analysis
Matrix: phpunit
Matrix: Check samples
Fit to window
Zoom out
Zoom in

Annotations

60 errors
Check samples (7.4)
Process completed with exit code 255.
Check samples (7.3)
Process completed with exit code 255.
Check samples (8.1)
Process completed with exit code 255.
Check samples (8.3)
Process completed with exit code 255.
Check samples (7.1)
Process completed with exit code 255.
Check samples (7.2)
Process completed with exit code 255.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L59
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L37
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/EPub3/Style/AbstractStyleTest.php#L17
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Writer/EPub3/Part/AbstractPartTest.php#L18
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Style/AbstractStyleTest.php#L112
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Style/AbstractStyleTest.php#L92
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Style/AbstractStyleTest.php#L72
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Style/AbstractStyleTest.php#L39
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Element/AbstractElementTest.php#L50
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.2): tests/PhpWordTests/Element/AbstractElementTest.php#L33
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L59
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L37
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/EPub3/Style/AbstractStyleTest.php#L17
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Writer/EPub3/Part/AbstractPartTest.php#L18
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Style/AbstractStyleTest.php#L112
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Style/AbstractStyleTest.php#L92
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Style/AbstractStyleTest.php#L72
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Style/AbstractStyleTest.php#L39
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Element/AbstractElementTest.php#L50
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.4): tests/PhpWordTests/Element/AbstractElementTest.php#L33
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (7.2)
Process completed with exit code 1.
PHP Static Analysis (7.2): src/PhpWord/Writer/ODText/Part/Content.php#L110
Cannot call method getText() on class-string|object.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L59
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L37
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/EPub3/Style/AbstractStyleTest.php#L17
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Writer/EPub3/Part/AbstractPartTest.php#L18
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Style/AbstractStyleTest.php#L112
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Style/AbstractStyleTest.php#L92
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Style/AbstractStyleTest.php#L72
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Style/AbstractStyleTest.php#L39
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Element/AbstractElementTest.php#L50
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.1): tests/PhpWordTests/Element/AbstractElementTest.php#L33
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L59
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/ODText/Part/AbstractPartTest.php#L37
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\ODText\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/EPub3/Style/AbstractStyleTest.php#L17
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Writer/EPub3/Part/AbstractPartTest.php#L18
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Writer\EPub3\Part\AbstractPartTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Style/AbstractStyleTest.php#L112
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Style/AbstractStyleTest.php#L92
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Style/AbstractStyleTest.php#L72
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Style/AbstractStyleTest.php#L39
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Style\AbstractStyleTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Element/AbstractElementTest.php#L50
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
PHP Static Analysis (8.0): tests/PhpWordTests/Element/AbstractElementTest.php#L33
Call to function method_exists() with $this(PhpOffice\PhpWordTests\Element\AbstractElementTest) and 'getMockForAbstractC…' will always evaluate to true.
Check samples (8.0)
Process completed with exit code 255.
Check samples (8.2)
Process completed with exit code 255.
PHP Static Analysis (7.3)
Process completed with exit code 1.
PHP Static Analysis (7.3): src/PhpWord/Writer/ODText/Part/Content.php#L110
Cannot call method getText() on class-string|object.
Check samples (8.4)
Process completed with exit code 255.
PHPUnit 7.4
Process completed with exit code 2.
PHPUnit 7.1
Process completed with exit code 2.
PHPUnit 7.2
Process completed with exit code 2.
PHPUnit 8.0
Process completed with exit code 2.
PHPUnit 8.2
Process completed with exit code 2.
PHPUnit 8.1
Process completed with exit code 2.
PHPUnit 7.3
Process completed with exit code 2.