Skip to content

Commit

Permalink
Replace the array_merge with spread array operator
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Sep 20, 2023
1 parent 32ec1b7 commit 0bf6a03
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 0bf6a03

Please sign in to comment.