Skip to content

Commit

Permalink
Merge pull request #21 from edersoares/avoid-bug
Browse files Browse the repository at this point in the history
Avoid empty configuration
  • Loading branch information
edersoares authored Jun 18, 2024
2 parents 3f460d7 + 76781ec commit 15a6eee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Frontier.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ class Frontier
{
public static function add(array $config): void
{
if (empty($config['type'])) {
return;
}

match ($config['type']) {
'http' => self::http($config),
'proxy' => self::proxy($config),
Expand Down

0 comments on commit 15a6eee

Please sign in to comment.