Open sabina-talipova opened 9 months ago
@sabina-talipova Do you know what is intended by either of those todo notes? I'm not sure what is intended and wouldn't know how to implement this. If you have more context please add it - otherwise this might be one we should close.
I've updated ticket. I'm not quite sure, should we provide some sort of functionality to user. It's just how I understood this todo comment. If you think it's not necessary we can close this issue.
Description
Debug::die_on_notice(bool)
.The
Debug::endshow()
method callsdie()
at the end. Various other methods such asdump()
do not. We should provide a way for the developer to decide whether they want to calldie()
or not, perhaps via a new static such asdieOnNotice()
which accepts a bool, and the bool determines if the methods should calldie()
or not.See: https://github.com/silverstripe/silverstripe-framework/blob/cf78a9d785b9959a92dfb52c2a456bea80a4c567/src/Dev/Debug.php#L29-L30