Skip to content

Commit

Permalink
fix(config): add isset check on setting ignore types
Browse files Browse the repository at this point in the history
  • Loading branch information
marcocesarato committed Feb 14, 2021
1 parent 4b764de commit 22ab180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ public function fromArray(array $array)
$params = array_replace_recursive($defaults, $array);

// Ignore Types
$params['ignoreTypes'] = $array['ignoreTypes']; // Overwrite ignored types
if (isset($array['ignoreTypes'])) {
$params['ignoreTypes'] = $array['ignoreTypes']; // Overwrite ignored types
}

// Set Types (overwrite ignored types)
if (!empty($array['types'])) {
Expand Down

0 comments on commit 22ab180

Please sign in to comment.