Skip to content

Commit d685340

Browse files
committed
Php8.5 Dompdf Adjustment
1 parent 3223dba commit d685340

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
if: matrix.php == 'nightly'
121121
env:
122122
FAILURE_ACTION: "${{ matrix.experimental == true }}"
123-
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage
123+
run: ./vendor/bin/phpunit -c phpunit10.xml.dist --no-coverage || $FAILURE_ACTION
124124

125125
- name: Run phpunit 7.3
126126
if: matrix.php == '7.3'

src/PhpWord/Writer/PDF/DomPDF.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function save(string $filename): void
9797
public function specialErrorHandler(int $errno, string $errstr, string $filename, int $lineno): bool
9898
{
9999
if ($errno === E_DEPRECATED) {
100-
if (preg_match('/canonical|imagedestroy/', $errstr) === 1) {
100+
if (preg_match('/canonical|imagedestroy|http_response_header/', $errstr) === 1) {
101101
return true;
102102
}
103103
}

0 commit comments

Comments
 (0)