Re: [PHP-DEV] [RFC] [Discussion] Add openStream() to XML{Reader,Writer}

2024-05-27 Thread Niels Dossche
On 22/05/2024 19:47, Niels Dossche wrote: > Okay, that seems reasonable to me and I can do that. > I'll make them return static and do "new static()" like I proposed with the > new static method. > > For XMLWriter, I suppose we also want the static counterparts: > * `XMLWriter::toMemory()` for

Re: [PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-05-27 Thread Bilge
On 27/05/2024 17:51, Elminson De Oleo Baez wrote: Below is a brief overview of the proposed methods: any_empty(array $array): bool - This method will return true if any element in the provided array is empty, and false otherwise. all_empty(array $array): bool - This method will return true if

[PHP-DEV] Fwd: Request for RFC Karma to Propose any_empty and all_empty Methods

2024-05-27 Thread Elminson De Oleo Baez
Dear PHP Internals Team, I hope this message finds you well. I am writing to request RFC karma for my wiki account in order to propose a new RFC. My proposal involves the introduction of two new methods, any_empty and all_empty, for working with arrays. These methods are designed to provide

Re: [PHP-DEV] Extract ArrayAccessRead from ArrayAccess

2024-05-27 Thread Valentin Udaltsov
On Mon, May 27, 2024 at 14:21 Alexandru Pătrănescu wrote: > > On Mon, May 27, 2024 at 7:16 AM Valentin Udaltsov < > udaltsov.valen...@gmail.com> wrote: > >> Hello, internals! >> >> Here's the idea: let's extract `ArrayAccess::offsetExists` and >> `ArrayAccess::offsetGet` methods into a separate

Re: [PHP-DEV] Extract ArrayAccessRead from ArrayAccess

2024-05-27 Thread Alexandru Pătrănescu
On Mon, May 27, 2024 at 7:16 AM Valentin Udaltsov < udaltsov.valen...@gmail.com> wrote: > Hello, internals! > > Here's the idea: let's extract `ArrayAccess::offsetExists` and > `ArrayAccess::offsetGet` methods into a separate `ArrayAccessRead` > interface (name can be different) and allow read