AvailableEnchantmentRegistry: reject non-string tags

fixes https://crash.pmmp.io/view/12627328
This commit is contained in:
Dylan K. Taylor
2025-04-20 16:44:23 +01:00
parent f661443ec7
commit 2548422973
2 changed files with 4 additions and 1 deletions

View File

@@ -584,7 +584,7 @@ final class Utils{
/**
* @phpstan-template TMemberType
* @phpstan-param array<mixed, TMemberType> $array
* @phpstan-param \Closure(TMemberType) : void $validator
* @phpstan-param \Closure(TMemberType) : mixed $validator
*/
public static function validateArrayValueType(array $array, \Closure $validator) : void{
foreach(Utils::promoteKeys($array) as $k => $v){