This commit is contained in:
Fabien Potencier
2024-11-30 09:42:13 +01:00
parent 44516133e2
commit 14fc89ebea
10 changed files with 16 additions and 22 deletions
+1
View File
@@ -88,6 +88,7 @@ final class StringExtension extends AbstractExtension
if (!class_exists(SpanishInflector::class)) {
throw new RuntimeError('SpanishInflector is not available.');
}
return $this->spanishInflector ?? $this->spanishInflector = new SpanishInflector();
case 'fr':
return $this->frenchInflector ?? $this->frenchInflector = new FrenchInflector();