mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 12:17:35 +02:00
Made the check in substr() strict compare to NULL
This commit is contained in:
@@ -31,7 +31,7 @@ final class Utils
|
||||
return mb_strcut($string, $start, $length);
|
||||
}
|
||||
|
||||
return substr($string, $start, $length ?: strlen($string));
|
||||
return substr($string, $start, (null === $length) ? strlen($string) : $length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user