Skip to content

Commit

Permalink
Add PHP 7.4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 29, 2024
1 parent 1c4fbeb commit a1f0f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Composer/ComposerFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public function getRequirements(): array
$requirements = [];
try {
$requirements = array_merge($requirements, $this->get('require'));
} catch (RuntimeException) {}
} catch (RuntimeException $runtimeException) {}

try {
$requirements = array_merge($requirements, $this->get('require-dev'));
} catch (RuntimeException) {}
} catch (RuntimeException $runtimeException) {}

return $requirements;
}
Expand Down

0 comments on commit a1f0f42

Please sign in to comment.