From bc9afe5ae9c063cfb7039792f7d23a09dad37a9f Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Tue, 2 Apr 2024 16:02:37 +0200 Subject: [PATCH] Allow empty enumeration strings --- composer.json | 2 +- .../TypeEnhancer/Calculator/EnumValuesCalculatorTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 40ede00b..a3674f00 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "azjezz/psl": "^2.1", "laminas/laminas-code": "^4.8.0", - "php-soap/engine": "^2.4", + "php-soap/engine": "^2.7", "php-soap/ext-soap-engine": "^1.4", "php-soap/psr18-transport": "^1.3", "php-soap/wsdl-reader": "~0.6", diff --git a/test/PhproTest/SoapClient/Unit/CodeGenerator/TypeEnhancer/Calculator/EnumValuesCalculatorTest.php b/test/PhproTest/SoapClient/Unit/CodeGenerator/TypeEnhancer/Calculator/EnumValuesCalculatorTest.php index 2e266350..12a6a7c0 100644 --- a/test/PhproTest/SoapClient/Unit/CodeGenerator/TypeEnhancer/Calculator/EnumValuesCalculatorTest.php +++ b/test/PhproTest/SoapClient/Unit/CodeGenerator/TypeEnhancer/Calculator/EnumValuesCalculatorTest.php @@ -33,6 +33,10 @@ public function it_fails_on_empty_enumerations(): void public function provideExpectations() { + yield 'empty' => [ + (new TypeMeta())->withEnums(['']), + "''", + ]; yield 'single' => [ (new TypeMeta())->withEnums(['a']), "'a'",