This cannot work for a number of reasons:
- a trait is not a type, and does not practically exist at runtime
- trait defined API can be imported with changed/aliased names, breaking
therefore the contact defined in the interface
- due to the previous point, inheriting a type from a trait become
Why traits doesn't supports interfaces (via implements) like classes does?
It could be useful when trait implements part of abstract functions from
interface, then the class that uses this traits should implements the
another part.
It could turn it possible (pseudo-code):
interface VisibilityCon
Hi!
When running tests with run-tests.php, if the tests fail, the script
will exit with non-zero exit code, but only if REPORT_EXIT_STATUS is
set. This was the case since 2002 when this capability has been introduced.
I think it would be nice if we reversed the default and made the script
use exi
On Mon, Feb 26, 2018 at 5:25 PM, Pedro Magalhães wrote:
>
> Hi Nikita, thanks for the feedback.
>
> About the implementation of the deprecation notice, I agree that it should
> be updated to be exception-safe.
>
Hi internals,
Just to give you an update on the current status. I'm still trying to