Skip to content

Commit

Permalink
Merge pull request cweagans#265 from ElijahLynn/fix-coverage-rootcomp…
Browse files Browse the repository at this point in the history
…oser

Use empty() instead of isset() to check for empty arrays in RootComposer (test coverage 100%)
  • Loading branch information
cweagans authored Apr 9, 2019
2 parents 037d392 + d66c5a4 commit fc8a477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resolvers/RootComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function resolve(PatchCollection $collection, PackageEvent $event)

$extra = $this->composer->getPackage()->getExtra();

if (!isset($extra['patches'])) {
if (empty($extra['patches'])) {
return;
}

Expand Down

0 comments on commit fc8a477

Please sign in to comment.