Skip to content

Commit

Permalink
Replace array_reverse with array_flip
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jan 4, 2024
1 parent 965b5ec commit 46963a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class Dumper
*/
private function __construct(private mixed $variable, array $excludedClasses = [])
{
$this->excludedClasses = array_reverse($excludedClasses);
$this->excludedClasses = array_flip($excludedClasses);
}

/**
Expand Down

0 comments on commit 46963a7

Please sign in to comment.