File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,10 @@ public static function ctype_xdigit($text)
211
211
*/
212
212
private static function convert_int_to_char_for_ctype ($ int , $ function )
213
213
{
214
+ if (\PHP_VERSION_ID >= 80100 && !\is_string ($ int )) {
215
+ @trigger_error ($ function .'(): Argument of type ' .get_debug_type ($ int ).' will be interpreted as string in the future ' , \E_USER_DEPRECATED );
216
+ }
217
+
214
218
if (!\is_int ($ int )) {
215
219
return $ int ;
216
220
}
@@ -219,10 +223,6 @@ private static function convert_int_to_char_for_ctype($int, $function)
219
223
return (string ) $ int ;
220
224
}
221
225
222
- if (\PHP_VERSION_ID >= 80100 ) {
223
- @trigger_error ($ function .'(): Argument of type int will be interpreted as string in the future ' , \E_USER_DEPRECATED );
224
- }
225
-
226
226
if ($ int < 0 ) {
227
227
$ int += 256 ;
228
228
}
You can’t perform that action at this time.
0 commit comments