Skip to content

Commit d66c5a4

Browse files
author
Elijah Lynn
committed
Use empty() instead of isset() to check for empty arrays.
1 parent d9f39c7 commit d66c5a4

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)