Skip to content

Commit

Permalink
Merge pull request #996 from peter279k/optimize_array_merge
Browse files Browse the repository at this point in the history
Replace the array_merge with spread array operator
  • Loading branch information
colinodell authored Oct 9, 2023
2 parents c15e649 + 0bf6a03 commit 7af3307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/SmartPunct/QuoteParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ final class QuoteParser implements InlineParserInterface

public function getMatchDefinition(): InlineParserMatch
{
return InlineParserMatch::oneOf(...\array_merge(self::DOUBLE_QUOTES, self::SINGLE_QUOTES));
return InlineParserMatch::oneOf(...[...self::DOUBLE_QUOTES, ...self::SINGLE_QUOTES]);
}

/**
Expand Down

0 comments on commit 7af3307

Please sign in to comment.