Skip to content

Commit

Permalink
Fix typo in intl-related locale exception message (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
finwe authored Aug 6, 2024
1 parent dede644 commit 8cf56ae
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 8cf56ae

Please sign in to comment.