Skip to content

Commit 199b4b9

Browse files
authored
Fix the lowest bound for the symfony/polyfill-uuid requirement (#1879)
The 1.13.0 release (the first release of that package) is unusable due to a bug triggering an error when loading the autoload file. Defining 1.13.1 as our lowest bound for the requirement (the first working release) makes it easier for projects testing with `--prefer-lowest`.
1 parent 110bafa commit 199b4b9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Generator/RequestSerializer/QuerySerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function generateRequestBuilder(StructureShape $shape, bool $needsChecks)
8787
}
8888
$shape = $member->getShape();
8989
if ($member->isIdempotencyToken()) {
90-
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.0');
90+
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.13.1');
9191
$body = 'if (null === $v = $this->PROPERTY) {
9292
$v = uuid_create(UUID_TYPE_RANDOM);
9393
}

src/Generator/RequestSerializer/RestJsonSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function generateRequestBuilder(StructureShape $shape, bool $needsChecks)
8989
}
9090
$shape = $member->getShape();
9191
if ($member->isIdempotencyToken()) {
92-
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.0');
92+
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.13.1');
9393
$body = 'if (null === $v = $this->PROPERTY) {
9494
$v = uuid_create(UUID_TYPE_RANDOM);
9595
}

src/Generator/RequestSerializer/RestXmlSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function generateRequestBuilder(StructureShape $shape, bool $needsChecks)
111111
}
112112

113113
if ($member->isIdempotencyToken()) {
114-
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.0');
114+
$this->requirementsRegistry->addRequirement('symfony/polyfill-uuid', '^1.13.1');
115115
$body = 'if (null === $v = $this->PROPERTY) {
116116
$v = uuid_create(UUID_TYPE_RANDOM);
117117
}

0 commit comments

Comments
 (0)