From 04fb2f4895897a56cd348b71c1e41517b2a160d1 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Sun, 7 Sep 2025 10:29:49 +0200 Subject: [PATCH] Enhance property meta with container meta --- composer.json | 2 +- tests/PhpCompatibility/schema1015.phpt | 66 ++++++++++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 tests/PhpCompatibility/schema1015.phpt diff --git a/composer.json b/composer.json index 5347c81..7171890 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "require": { "php": "~8.2.0 || ~8.3.0 || ~8.4.0", "ext-dom": "*", - "goetas-webservices/xsd-reader": "^0.4.8", + "goetas-webservices/xsd-reader": "^0.4.11", "php-soap/engine": "^2.13", "php-soap/wsdl": "^1.10", "php-soap/xml": "^1.8.0", diff --git a/tests/PhpCompatibility/schema1015.phpt b/tests/PhpCompatibility/schema1015.phpt new file mode 100644 index 0000000..bdfa82f --- /dev/null +++ b/tests/PhpCompatibility/schema1015.phpt @@ -0,0 +1,66 @@ +--TEST-- +SOAP XML Schema 1015: Group ref with minOccurs / MaxOccurs +--FILE-- + + + + + + + + + + + + + + + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:Element"'); +?> +--EXPECT-- +Methods: + > test(Element $testParam): void + +Types: + > http://test-uri/:nullableGroupRef { + ?string $nullable + array, string> $list + array, string> $scoped + ?string $single + } + > http://test-uri/:listGroupRef { + array, string> $nullable + array, string> $list + array, string> $scoped + array, string> $single + } + > http://test-uri/:scopedGroupRef { + array, string> $nullable + array, string> $list + array, string> $scoped + array, string> $single + } + > http://test-uri/:singleGroupRef { + ?string $nullable + array, string> $list + array, string> $scoped + string $single + }