Re:An Exceptional Change in PHP 7.0
by debacle on Monday October 05, 2015 @09:53PM
(#10336327)
The logic behind the difference is in the fact that PHP doesn't have assertions - the naming is based on the root cause, not when the occur.
A RuntimeException is something like "Database connection failed." A LogicException is an implementation issue (e.g. usually requires a code change to fix).
A RuntimeException is something like "Database connection failed." A LogicException is an implementation issue (e.g. usually requires a code change to fix).