Skip to content

Commit 62d2e32

Browse files
committed
Allow PHP83
1 parent fb32fc6 commit 62d2e32

File tree

10 files changed

+11
-8
lines changed

10 files changed

+11
-8
lines changed

.github/workflows/analyzers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2']
10+
php-versions: ['8.1', '8.2', '8.3']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.github/workflows/code-style.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2']
10+
php-versions: ['8.1', '8.2', '8.3']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2']
10+
php-versions: ['8.1', '8.2', '8.3']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.phive/phars.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="psalm" version="^4.30.0" installed="4.30.0" location="./tools/psalm.phar" copy="true"/>
4-
<phar name="php-cs-fixer" version="^3.13.0" installed="3.13.0" location="./tools/php-cs-fixer.phar" copy="true"/>
3+
<phar name="psalm" version="^5.16.0" installed="5.16.0" location="./tools/psalm.phar" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.13.0" installed="3.39.0" location="./tools/php-cs-fixer.phar" copy="true"/>
55
</phive>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "~8.1.0 || ~8.2.0",
23+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
2424
"ext-dom": "*",
2525
"veewee/xml": "^2.2"
2626
},

psalm.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@
2020
<directory name="tests" />
2121
</ignoreFiles>
2222
</projectFiles>
23+
<ignoreExceptions>
24+
<class name="InvalidArgumentException" />
25+
</ignoreExceptions>
2326
</psalm>

src/Locator/SoapBodyLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public function __invoke(DOMDocument $document): ?DOMElement
2121
$soapNs = root_namespace_uri()($document) ?? '';
2222
$xpath = Document::fromUnsafeDocument($document)->xpath(namespaces(['soap' => $soapNs]));
2323

24-
return $xpath->query('//soap:Envelope/soap:Body')->first();
24+
return $xpath->query('//soap:Envelope/soap:Body')->expectAllOfType(DOMElement::class)->first();
2525
}
2626
}

src/Locator/SoapHeaderLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public function __invoke(DOMDocument $document): ?DOMElement
2121
$soapNs = root_namespace_uri()($document) ?? '';
2222
$xpath = Document::fromUnsafeDocument($document)->xpath(namespaces(['soap' => $soapNs]));
2323

24-
return $xpath->query('//soap:Envelope/soap:Header')->first();
24+
return $xpath->query('//soap:Envelope/soap:Header')->expectAllOfType(DOMElement::class)->first();
2525
}
2626
}

tools/php-cs-fixer.phar

75.9 KB
Binary file not shown.

tools/psalm.phar

394 KB
Binary file not shown.

0 commit comments

Comments
 (0)