Skip to content

Commit

Permalink
Fix typo in intl-related locale exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
finwe committed Jul 10, 2024
1 parent 7218197 commit a18f606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Latte/Engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public function isStrictParsing(): bool
public function setLocale(?string $locale): static
{
if ($locale && !extension_loaded('intl')) {
throw new RuntimeException("Locate requires the 'intl' extension to be installed.");
throw new RuntimeException("Setting a locale requires the 'intl' extension to be installed.");
}
$this->locale = $locale;
return $this;
Expand Down

0 comments on commit a18f606

Please sign in to comment.