Bug #75865 [Opn->Ver]: Extending exceptions has not been updated with Throwable

From: Date: Wed, 24 Jan 2018 08:32:40 +0000
Subject: Bug #75865 [Opn->Ver]: Extending exceptions has not been updated with Throwable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213684@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75865&edit=1 ID: 75865 Updated by: requinix@php.net Reported by: misc at youngish dot org Summary: Extending exceptions has not been updated with Throwable -Status: Open +Status: Verified Type: Bug -Package: Documentation problem +Package: Scripting Engine problem -PHP Version: 7.0Git-2018-01-23 (snap) +PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Literally the only difference is adding "implements Throwable" into the definition, and that doesn't affect how to extend the class. Previous Comments: ------------------------------------------------------------------------ [2018-01-23 22:56:47] misc at youngish dot org Description: ------------ The documentation here: http://php.net/manual/en/language.exceptions.extending.php Provides an old version of the Exception base class which does not implement the Throwable interface. As such its guidance is poor for new PHP code. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75865&edit=1

« previous php.bugs (#213684) next »