Skip to content

Commit

Permalink
Merge pull request #90 from Afrowson/patch-1
Browse files Browse the repository at this point in the history
Fix wrong Validation Error message for hsla strings
  • Loading branch information
freekmurze authored Nov 18, 2024
2 parents 417ab25 + 4a48313 commit fbea281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidColorValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function malformedHslColorString(string $string): self

public static function malformedHslaColorString(string $string): self
{
return new static("Hsla color string `{$string}` is malformed. An hsla color contains hue, saturation, lightness and alpha values, wrapped in `hsl()`, e.g. `hsl(300,10%,50%,0.25)`.");
return new static("Hsla color string `{$string}` is malformed. An hsla color contains hue, saturation, lightness and alpha values, wrapped in `hsla()`, e.g. `hsla(300,10%,50%,0.25)`.");
}

public static function malformedRgbColorString(string $string): self
Expand Down

0 comments on commit fbea281

Please sign in to comment.