Table of Contents

PHP RFC: Introduce Throwable interface and Error class

Introduction

PHP 7 replaces existing fatal or recoverable fatal errors with exceptions. While the respective RFC was already in voting, I proposed a change to the exception hierarchy it used (see below).

Proposal

This RFC proposes the following changes to PHP 7's exception hierarchy:

Backward Incompatible Changes

Throwable is no longer available as a name in the global namespace.

Proposed PHP Version(s)

PHP 7

References

* Exceptions in the engine