mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-07 18:41:47 +00:00
UnsafeForeachArrayOfStringRule: fixed outdated function name
This commit is contained in:
parent
9f4fcfafdb
commit
8da27ea0aa
@ -81,7 +81,7 @@ final class UnsafeForeachArrayOfStringRule implements Rule{
|
|||||||
RuleErrorBuilder::message(sprintf(
|
RuleErrorBuilder::message(sprintf(
|
||||||
"Unsafe foreach on array with key type %s (they might be casted to int).",
|
"Unsafe foreach on array with key type %s (they might be casted to int).",
|
||||||
$iterableType->getIterableKeyType()->describe(VerbosityLevel::value())
|
$iterableType->getIterableKeyType()->describe(VerbosityLevel::value())
|
||||||
))->tip("Use Utils::foreachWithStringKeys() for a safe Generator-based iterator.")->build()
|
))->tip("Use Utils::stringifyKeys() for a safe Generator-based iterator.")->build()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user