Re: [PHP-DEV] Traits with interfaces

2018-02-28 Thread Marco Pivetta
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

[PHP-DEV] Traits with interfaces

2018-02-28 Thread David Rodrigues
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

[PHP-DEV] run-tests.php exit code

2018-02-28 Thread Stanislav Malyshev
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

Re: [PHP-DEV] [RFC] [Discussion] Arrays starting with a negative index

2018-02-28 Thread Pedro Magalhães
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