Re: RFC: Trait expects interface

From: Date: Tue, 04 Jan 2022 23:10:05 +0000
Subject: Re: RFC: Trait expects interface
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-116803@lists.php.net to get a copy of this message
On Wed, Jan 5, 2022 at 12:36 AM Kirill Nesmeyanov <nesk@xakep.ru> wrote: > Since «traits» are often an indicator of not very good code and many may not use them quite > correctly, for example, as helpers, I suggest adding support for the > expects keyword to indicate that the trait is part of the code > decomposition taking into account ISP. Prior art: @psalm-require-extends and @psalm-require-implements Psalm annotations: https://psalm.dev/docs/annotating_code/supported_annotations/#psalm-require-extends -- Best regards, Bruce Weirdan mailto:weirdan@gmail.com

« previous php.internals (#116803) next »