Skip to content

Commit

Permalink
ISSUE-370: check empty before array check
Browse files Browse the repository at this point in the history
  • Loading branch information
beto-aveiga committed Oct 2, 2024
1 parent 5ce7255 commit b99340d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ScaffoldInstallerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ private function _checkComposerPatchesAreLocal()
$patchesContent = $patchesInComposer;
}

// Patches content is not a string.
if (!is_array($patchesContent)) {
$this->io->warning("The patches content can't be validated. Check your patches defined in Composer.");
if (empty($patchesContent)) {
return;
}

if (empty($patchesContent)) {
// Patches content is not a string.
if (!is_array($patchesContent)) {
$this->io->warning("The patches content can't be validated. Check your patches defined in Composer.");
return;
}

Expand Down

0 comments on commit b99340d

Please sign in to comment.