Following a comment by Tim Düsterhus (thanks!) and another comment in the PR, I have inverted the order of the parameters in the ensure and remove functions, so that they follow the parameter order in related functions like str_contains() and str_starts_with()
Cheers Carlos On Thu, 22 Jan 2026 at 10:17, Tim Düsterhus <[email protected]> wrote: > Hi > > Am 2026-01-22 10:10, schrieb Barel: > > I would like to open the discussion on my proposal to add new functions > > to > > process prefixes and suffixes > > > > This is the link to the RFC: > > https://wiki.php.net/rfc/prefix_suffix_functions > > Please don't forget to move it to the correct section in the overview > at: https://wiki.php.net/rfc - and to add a link to the discussion > thread archives to the “References” section. The “pre-RFC” thread is > probably also to link there: > https://news-web.php.net/php.internals/129767 > > Best regards > Tim Düsterhus >
