1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

Made the check in substr() strict compare to NULL

This commit is contained in:
Koen Eelen
2020-08-18 16:32:06 +02:00
parent 0af0cd8338
commit fad3e427c7
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 mb_strcut($string, $start, $length);
} }
return substr($string, $start, $length ?: strlen($string)); return substr($string, $start, (null === $length) ? strlen($string) : $length);
} }
/** /**

View File