Skip to content

Commit e4662d2

Browse files
committed
More phpstan fixes
1 parent 9dc54e0 commit e4662d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Config/GeneralConfig.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4096,6 +4096,7 @@ class_exists(Craft::class, false) &&
40964096
) {
40974097
try {
40984098
$value = I18N::normalizeLanguage($value);
4099+
/** @phpstan-ignore catch.neverThrown */
40994100
} catch (\InvalidArgumentException $e) {
41004101
throw new InvalidConfigException($e->getMessage(), 0, $e);
41014102
}
@@ -4737,6 +4738,7 @@ public function extraAppLocales(array $value): self
47374738
foreach ($value as &$localeId) {
47384739
try {
47394740
$localeId = I18N::normalizeLanguage($localeId);
4741+
/** @phpstan-ignore catch.neverThrown */
47404742
} catch (\InvalidArgumentException $e) {
47414743
throw new InvalidConfigException($e->getMessage(), 0, $e);
47424744
}

0 commit comments

Comments
 (0)