UnsafeForeachArrayOfStringRule: fixed outdated function name

This commit is contained in:
Dylan K. Taylor 2022-01-18 00:15:44 +00:00
parent 9f4fcfafdb
commit 8da27ea0aa
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -81,7 +81,7 @@ final class UnsafeForeachArrayOfStringRule implements Rule{
RuleErrorBuilder::message(sprintf(
"Unsafe foreach on array with key type %s (they might be casted to int).",
$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 [];