Skip to content

Commit

Permalink
Merge pull request #7 from veewee/php83
Browse files Browse the repository at this point in the history
Allow PHP83
  • Loading branch information
veewee committed Nov 24, 2023
2 parents fb32fc6 + 62d2e32 commit 6c65aa1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="psalm" version="^4.30.0" installed="4.30.0" location="./tools/psalm.phar" copy="true"/>
<phar name="php-cs-fixer" version="^3.13.0" installed="3.13.0" location="./tools/php-cs-fixer.phar" copy="true"/>
<phar name="psalm" version="^5.16.0" installed="5.16.0" location="./tools/psalm.phar" copy="true"/>
<phar name="php-cs-fixer" version="^3.13.0" installed="3.39.0" location="./tools/php-cs-fixer.phar" copy="true"/>
</phive>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"require": {
"php": "~8.1.0 || ~8.2.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-dom": "*",
"veewee/xml": "^2.2"
},
Expand Down
3 changes: 3 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
<directory name="tests" />
</ignoreFiles>
</projectFiles>
<ignoreExceptions>
<class name="InvalidArgumentException" />
</ignoreExceptions>
</psalm>
2 changes: 1 addition & 1 deletion src/Locator/SoapBodyLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public function __invoke(DOMDocument $document): ?DOMElement
$soapNs = root_namespace_uri()($document) ?? '';
$xpath = Document::fromUnsafeDocument($document)->xpath(namespaces(['soap' => $soapNs]));

return $xpath->query('//soap:Envelope/soap:Body')->first();
return $xpath->query('//soap:Envelope/soap:Body')->expectAllOfType(DOMElement::class)->first();
}
}
2 changes: 1 addition & 1 deletion src/Locator/SoapHeaderLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public function __invoke(DOMDocument $document): ?DOMElement
$soapNs = root_namespace_uri()($document) ?? '';
$xpath = Document::fromUnsafeDocument($document)->xpath(namespaces(['soap' => $soapNs]));

return $xpath->query('//soap:Envelope/soap:Header')->first();
return $xpath->query('//soap:Envelope/soap:Header')->expectAllOfType(DOMElement::class)->first();
}
}
Binary file modified tools/php-cs-fixer.phar
Binary file not shown.
Binary file modified tools/psalm.phar
Binary file not shown.

0 comments on commit 6c65aa1

Please sign in to comment.