Skip to content

Commit

Permalink
[BUGFIX] Fix typo in a private constant name (#949)
Browse files Browse the repository at this point in the history
"expressiom" is not a valid expression. And it's also not an
abbreviation of "expressionism".
  • Loading branch information
oliverklee authored Nov 23, 2020
1 parent 317298e commit a835fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Support/Constraint/CssConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class CssConstraint extends Constraint
*
* @var string
*/
private const CSS_REGULAR_EXPRESSIOM_PATTERN = '/
private const CSS_REGULAR_EXPRESSION_PATTERN = '/
(?<![\\s;}]) # - `}` as end of declarations rule block, captured in group 1, with possible
(?:\\s*+;)?+ # surrounding whitespace and optional preceding `;` (but not if preceded by
\\s*+(\\})\\s*+ # another `}` or `;`)
Expand Down Expand Up @@ -55,7 +55,7 @@ abstract class CssConstraint extends Constraint
protected static function getCssNeedleRegularExpressionPattern(string $needle): string
{
$needleMatcher = \preg_replace_callback(
self::CSS_REGULAR_EXPRESSIOM_PATTERN,
self::CSS_REGULAR_EXPRESSION_PATTERN,
[self::class, 'getCssNeedleRegularExpressionReplacement'],
$needle
);
Expand Down

0 comments on commit a835fe4

Please sign in to comment.