1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

BUGFIX substr() broke when passing a NULL because of strict type in case mb mod not installed

This commit is contained in:
Koen Eelen
2020-08-14 11:41:52 +02:00
parent f9eee5cec9
commit 0af0cd8338
2 changed files with 1 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ final class Utils
return mb_strcut($string, $start, $length);
}
return substr($string, $start, $length);
return substr($string, $start, $length ?: strlen($string));
}
/**

0
test.php Normal file
View File