Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 5951e36

Browse files
authored
Allow empty strings, let the server return an error (#50)
1 parent b4e2b13 commit 5951e36

File tree

151 files changed

+642
-647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+642
-647
lines changed

generator/src/OperatorGenerator.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ final protected function getAcceptedTypes(ArgumentDefinition $arg): stdClass
9595
$use = [];
9696

9797
foreach ($nativeTypes as $key => $typeName) {
98-
// strings cannot be empty
99-
if ($typeName === 'string') {
100-
$docTypes[$key] = 'non-empty-string';
101-
}
102-
10398
if (interface_exists($typeName) || class_exists($typeName)) {
10499
$use[] = $nativeTypes[$key] = '\\' . $typeName;
105100
$docTypes[$key] = $this->splitNamespaceAndClassName($typeName)[1];

src/Builder/Accumulator/AccumulatorAccumulator.php

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/AddToSetAccumulator.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomAccumulator.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomNAccumulator.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/DerivativeAccumulator.php

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)