From 8674440b581bca18533a3069f00d723b372933ea Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Fri, 20 Nov 2026 21:17:27 +0100 Subject: [PATCH] Require xsd-reader 0.4.12 and drop the PHP 8.6 deprecation handler xsd-reader 0.4.12 no longer calls spl_object_hash(), so the compatibility tests no longer need to swallow its deprecation, and PHP 8.6 users get the fixed version. --- composer.json | 2 +- tests/PhpCompatibility/test_schema.inc | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 7aae6e6..84265df 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": "~8.4.0 || ~8.5.0 || ~8.6.0", "ext-dom": "*", - "goetas-webservices/xsd-reader": "^0.4.11", + "goetas-webservices/xsd-reader": "^0.4.12", "php-soap/engine": "^2.20", "php-soap/wsdl": "^1.19", "php-soap/xml": "^1.10", diff --git a/tests/PhpCompatibility/test_schema.inc b/tests/PhpCompatibility/test_schema.inc index 80b9a59..683151d 100644 --- a/tests/PhpCompatibility/test_schema.inc +++ b/tests/PhpCompatibility/test_schema.inc @@ -14,14 +14,6 @@ $previousReporting = error_reporting(E_ALL ^ E_DEPRECATED); require_once __DIR__.'/../bootstrap.php'; error_reporting($previousReporting); -// goetas-webservices/xsd-reader calls spl_object_hash(), which PHP 8.6 deprecates, and the notice would end up in -// the expected output. Only its deprecations are swallowed: any other one still fails the test. -// Remove once goetas-webservices/xsd-reader#96 is released. -set_error_handler( - static fn (int $errno, string $errstr, string $errfile): bool => $errno === E_DEPRECATED - && str_contains($errfile, '/goetas-webservices/xsd-reader/'), -); - function test_schema($schema, $type, $style="rpc",$use="encoded", $attributeFormDefault='') { $wsdl = <<