Skip to content

Commit fc8a477

Browse files
authored
Merge pull request #265 from ElijahLynn/fix-coverage-rootcomposer
Use empty() instead of isset() to check for empty arrays in RootComposer (test coverage 100%)
2 parents 037d392 + d66c5a4 commit fc8a477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resolvers/RootComposer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function resolve(PatchCollection $collection, PackageEvent $event)
2222

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

25-
if (!isset($extra['patches'])) {
25+
if (empty($extra['patches'])) {
2626
return;
2727
}
2828

0 commit comments

Comments
 (0)