[RFC] Exception type hint

From: Date: Wed, 29 Jun 2022 14:34:09 +0000
Subject: [RFC] Exception type hint
Groups: php.internals 
Request: Send a blank email to internals+get-118120@lists.php.net to get a copy of this message
Hello, I am writing to you regarding my issue on php src available here https://github.com/php/php-src/issues/8843 and the request of the creation of an RFC. I would like to know if, like all the recent improvements of the php 7 & 8 internal engine goes (return type hint, arg type hint, props typehint, etc) It could be beneficial for the whole ecosystem to have as well exceptions type hint. framework/libraries could leverage this with internal exceptions classes/interfaces and devland code could rely on those to better handle (un)predictable code execution leading to exception I can of course imagine/understand that this may be a deep internal risky feature but felt the need to discuss it, so please feel free to answer or decline this. Kind regard, cheers! Antoine,

« previous php.internals (#118120) next »