You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 5, 2024. It is now read-only.
Convert::to does not properly set ErrorException::$severity when called via to(string, callable, int) signature:
<?php// OK: \ErrorException::$severity is set// Using Convert::toErrorException, which handles it manuallyConvert::toErrorException(function () {
var_dump($undefined);
});
// NG: \ErrorException::$severity is default// Using Convert::to, which does not specifically treat \ErrorExceptionConvert::to(\ErrorException::class, function () {
var_dump($undefined);
});
This behavior is slightly confusing as they are neither documented nor logical.
The text was updated successfully, but these errors were encountered:
Convert::to
does not properly setErrorException::$severity
when called viato(string, callable, int)
signature:This behavior is slightly confusing as they are neither documented nor logical.
The text was updated successfully, but these errors were encountered: