Skip to content

Commit

Permalink
Merge pull request #25 from veewee/allow-empty-enums
Browse files Browse the repository at this point in the history
Allow empty enums
  • Loading branch information
veewee authored Apr 2, 2024
2 parents 535251d + 1783bd3 commit 32d32e0
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-dom": "*",
"goetas-webservices/xsd-reader": "^0.4.1",
"php-soap/engine": "^2.6",
"php-soap/engine": "^2.7",
"php-soap/wsdl": "^1.4",
"veewee/xml": "^2.6 || ^3.0",
"azjezz/psl": "^2.4",
Expand Down
21 changes: 21 additions & 0 deletions tests/PhpCompatibility/schema1011.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
--TEST--
SOAP XML Schema 1001: Empty enumarable
--FILE--
<?php
include __DIR__."/test_schema.inc";
$schema = <<<EOF
<simpleType name="EmptySimpleType">
<restriction base="string">
<enumeration value=""/>
</restriction>
</simpleType>
EOF;
test_schema($schema,'type="tns:EmptySimpleType"');
?>
--EXPECT--
Methods:
> test(EmptySimpleType $testParam): void

Types:
> http://test-uri/:EmptySimpleType extends string in ()

0 comments on commit 32d32e0

Please sign in to comment.