Skip to content

Commit

Permalink
Use empty() instead of isset() to check for empty arrays.
Browse files Browse the repository at this point in the history
  • Loading branch information
Elijah Lynn committed Apr 9, 2019
1 parent d9f39c7 commit d66c5a4
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 d66c5a4

Please sign in to comment.