diff --git a/.github/workflows/analyzers.yaml b/.github/workflows/analyzers.yaml
index 3af5260..1f40ed6 100644
--- a/.github/workflows/analyzers.yaml
+++ b/.github/workflows/analyzers.yaml
@@ -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:
diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml
index 67f9f6f..089eaa5 100644
--- a/.github/workflows/code-style.yaml
+++ b/.github/workflows/code-style.yaml
@@ -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:
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 37f4910..7970d91 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -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:
diff --git a/.phive/phars.xml b/.phive/phars.xml
index 2c4c998..7c19d43 100644
--- a/.phive/phars.xml
+++ b/.phive/phars.xml
@@ -1,5 +1,5 @@
-
-
+
+
diff --git a/composer.json b/composer.json
index f306576..b64ae83 100644
--- a/composer.json
+++ b/composer.json
@@ -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"
},
diff --git a/psalm.xml b/psalm.xml
index 41ca9f8..4f717ec 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -20,4 +20,7 @@
+
+
+
diff --git a/src/Locator/SoapBodyLocator.php b/src/Locator/SoapBodyLocator.php
index 293b713..f9b292a 100644
--- a/src/Locator/SoapBodyLocator.php
+++ b/src/Locator/SoapBodyLocator.php
@@ -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();
}
}
diff --git a/src/Locator/SoapHeaderLocator.php b/src/Locator/SoapHeaderLocator.php
index 1526ff0..c5bf841 100644
--- a/src/Locator/SoapHeaderLocator.php
+++ b/src/Locator/SoapHeaderLocator.php
@@ -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();
}
}
diff --git a/tools/php-cs-fixer.phar b/tools/php-cs-fixer.phar
index 7912db6..9a03f3e 100755
Binary files a/tools/php-cs-fixer.phar and b/tools/php-cs-fixer.phar differ
diff --git a/tools/psalm.phar b/tools/psalm.phar
index 86184ee..2e4956a 100755
Binary files a/tools/psalm.phar and b/tools/psalm.phar differ