Skip to content

Commit

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

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

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

0 comments on commit 4b764de

Please sign in to comment.