note 112781 deleted from language.oop5.traits by cmb
| From: | cmb@php.net | Date: | Sun, 01 Dec 2019 08:56:11 +0000 |
| Subject: | note 112781 deleted from language.oop5.traits by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213333@lists.php.net to get a copy of this message | ||
Note Submitter: contato at williamsantana dot com dot br
----
Please note that a trait cannot extend a class. Traits can only contain another traits by using
'use' keyword. Things like
<?php
trait DetailedException extends Exception {}
?>
will not work. Be careful.
Cheers.