File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments