Merge "Replace gettype() with get_debug_type() in exception messages"

This commit is contained in:
jenkins-bot 2024-08-20 21:49:50 +00:00 committed by Gerrit Code Review
commit a1047fd2f6

View file

@ -631,7 +631,7 @@ class SimpleCaptcha {
if ( $newtext !== null && $wgCaptchaRegexes ) {
if ( !is_array( $wgCaptchaRegexes ) ) {
throw new UnexpectedValueException(
'$wgCaptchaRegexes is required to be an array, ' . gettype( $wgCaptchaRegexes ) . ' given.'
'$wgCaptchaRegexes is required to be an array, ' . get_debug_type( $wgCaptchaRegexes ) . ' given.'
);
}
// Custom regex checks. Reuse $oldtext if set above.