From 8cf56ae2969d0d9ae412232db414e4c8b3ee313f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Hump=C3=A1l?= Date: Tue, 6 Aug 2024 05:12:14 +0200 Subject: [PATCH] Fix typo in intl-related locale exception message (#368) --- src/Latte/Engine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Latte/Engine.php b/src/Latte/Engine.php index a2e0d7c77..115b37772 100644 --- a/src/Latte/Engine.php +++ b/src/Latte/Engine.php @@ -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;