Skip to content

Commit 9d2a56c

Browse files
committed
build: update setPhpDependencyVersion parameters
1 parent 50aed71 commit 9d2a56c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

bin/release

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ function bumpKernelVersion(string $version): void
4242
/**
4343
* Forcibly sets the specified package to the specified version in all `composer.json` files.
4444
*/
45-
function setPhpDependencyVersion(string $package, string $version, bool $addIfMissing = true): void
45+
function setPhpDependencyVersion(string $package, string $version): void
4646
{
4747
foreach (glob(__DIR__ . '/../src/Tempest/*/composer.json') as $path) {
4848
updateJsonFile(
4949
path: $path,
50-
callback: function (array $content) use ($version, $package, $addIfMissing) {
51-
if (! isset($content['require'][$package]) && ! $addIfMissing) {
50+
callback: function (array $content) use ($version, $package) {
51+
if (! isset($content['require'][$package])) {
5252
return $content;
5353
}
5454

@@ -72,7 +72,6 @@ function bumpPhpPackages(string $version, bool $isMajor): void
7272
setPhpDependencyVersion(
7373
package: 'tempest/highlight',
7474
version: json_decode(file_get_contents(__DIR__ . '/../composer.json'), associative: true)['require']['tempest/highlight'],
75-
addIfMissing: false,
7675
);
7776

7877
// Validates
@@ -92,7 +91,6 @@ function cleanUpAfterRelease(): void
9291
setPhpDependencyVersion(
9392
package: 'tempest/highlight',
9493
version: json_decode(file_get_contents(__DIR__ . '/../composer.json'), associative: true)['require']['tempest/highlight'],
95-
addIfMissing: false,
9694
);
9795

9896
// Validates

0 commit comments

Comments
 (0)