On Thu, Jun 15, 2023 at 5:41 PM Levi Morrison via internals
<internals@lists.php.net> wrote:
>
> On Thu, Jun 15, 2023 at 3:37 PM Ilija Tovilo <tovilo.il...@gmail.com> wrote:
> > > I am moving my RFC for interface default methods to discussion:
> > > https://wiki.php.net/rfc/interface-default-methods.
> >
> > The RFC doesn't mention default implementations for static methods.
> > I'm not sure there's a use case but it might make sense to explicitly
> > mention whether they are supported.
>
> Interesting point. I sometimes forget that `static` is allowed in
> interfaces. When I rebase the branch, I'll check it out. I assume it
> works at a technical level without issues. If that's true, then absent
> further evidence, I would say to allow it.

I have rebased my branch on the latest master, and added a test case
that default methods work with static methods on interfaces. They do.
If you can think of any interesting test cases to add in that space,
feel free.

PR: https://github.com/php/php-src/pull/11467

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to