Skip to content

Commit 127be78

Browse files
committed
Reverse hasCoreVersionRequirement() conditional
1 parent 817c4fc commit 127be78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Writer/Drupal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function rewrite($version, $timestamp, $core = null, $project = null)
4141
// Don't write to files that already contain version information.
4242
if (!$this->hasVersionInfo($info_file)) {
4343
$file = fopen($info_file, 'a+');
44-
$coreToWrite = $this->hasCoreVersionRequirement($info_file) ? $core : null;
44+
$coreToWrite = $this->hasCoreVersionRequirement($info_file) ? null : $core;
4545
fwrite($file, $this->formatInfo($version, $timestamp, $coreToWrite, $project));
4646
fclose($file);
4747
}

0 commit comments

Comments
 (0)