Skip to content

Commit

Permalink
fix: sniff options parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
gskema committed Dec 11, 2023
1 parent 028b42a commit 55935ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Sniffs/AbstractConfigurableSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public function process(File $file, $ptr): void
}
}

// since 3.8.0
$opts = array_map(fn ($value) => $value['value'] ?? $value, $opts);

array_walk_recursive($opts, function (&$val) {
if ('true' === $val) {
$val = true;
Expand Down

0 comments on commit 55935ef

Please sign in to comment.