Skip to content

Commit

Permalink
Merge pull request #507 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 60a6631 + 7396da8 commit 7b7cd0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/Phpro/SoapClient/CodeGenerator/Util/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Normalizer
'callable' => 'callable',
'iterable' => 'iterable',
'array' => 'array',
'void' => 'void',
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 7b7cd0e

Please sign in to comment.