# PHP 8.4 / Status of "Saner Increment/Decrement operator" part 2 ?

- Thread: https://externals.io/message/125596
- Original archive: https://news-web.php.net/php.internals/125596
- Started by Juliette Reinders Folmer on 2024-09-17T18:04:58+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #125596 — Juliette Reinders Folmer — 2024-09-17T18:04:58+00:00

URL: https://externals.io/message/125596#125596

L.s.,

I was just looking at the "Path to Saner Increment/Decrement operators" 
RFC [1] and as part of the proposal, step 2 "Deprecate using the 
increment operator with non-numeric strings." should have gone into PHP 
8.4, but I can't find anything about this deprecation having been added 
in PHP 8.4 in the UPGRADING docs.

Anyone around who can tell me what the status is ?

Smile,
Juliette


1: https://wiki.php.net/rfc/saner-inc-dec-operators

---

## #125616 — drealecs@gmail.com — 2024-09-18T07:43:38+00:00

URL: https://externals.io/message/125596#125616 · In reply to: #125596

On Tue, Sep 17, 2024 at 9:11 PM Juliette Reinders Folmer <
php-internals_nospam@adviesenzo.nl> wrote:

> L.s.,
>
> I was just looking at the "Path to Saner Increment/Decrement operators"
> RFC [1] and as part of the proposal, step 2 "Deprecate using the
> increment operator with non-numeric strings." should have gone into PHP
> 8.4, but I can't find anything about this deprecation having been added in
> PHP 8.4 in the UPGRADING docs.
>
>
That was in PHP 8.3:
https://github.com/php/php-src/blob/PHP-8.3/UPGRADING#L177

-- 
Alex

---

## #125617 — Christoph M. Becker — 2024-09-18T09:27:26+00:00

URL: https://externals.io/message/125596#125617 · In reply to: #125596

> I was just looking at the "Path to Saner Increment/Decrement operators"
> RFC [1] and as part of the proposal, step 2 "Deprecate using the
> increment operator with non-numeric strings." should have gone into PHP
> 8.4, but I can't find anything about this deprecation having been added
> in PHP 8.4 in the UPGRADING docs.
>
> Anyone around who can tell me what the status is ?

See <https://wiki.php.net/rfc#pending_implementationlanding>; the RFC is
still listed there for PHP 8.X and PHP 9.0.  The 8.X part has not (yet)
been done.

In my opinion, this can be postponed to PHP 8.5, but if PHP 9.0 is next,
that would not work, since we cannot deprecate and remove in the same
version.

Christoph

---

## #125639 — Gina P. Banyard — 2024-09-20T11:59:31+00:00

URL: https://externals.io/message/125596#125639 · In reply to: #125596

> L.s.,
>
> I was just looking at the "Path to Saner Increment/Decrement operators" RFC [1] and as part of the proposal, step 2 "Deprecate using the increment operator with non-numeric strings." should have gone into PHP 8.4, but I can't find anything about this deprecation having been added in PHP 8.4 in the UPGRADING docs.
>
> Anyone around who can tell me what the status is ?
>
> Smile,
> Juliette
>
> 1: https://wiki.php.net/rfc/saner-inc-dec-operators

As Christoph has already said, the RFC indicated PHP 8.X where X is greater than 3.
So no it did not need to land in 8.4.

Considering that I personally find it unlikely that the next version is going to be 9.0 (now I may be wrong but we don't really have any strong indications for doing this bump) and people were already uncomfortable at the timeline I proposed when the RFC got voted;
I found it better to let another deprecation free version for people to move to `str_increment()`.

I did not forget about this and had it on the planned list of things to tackle for PHP 8.5.

Best regards,
Gina P. Banyard

---

## #125640 — Juliette Reinders Folmer — 2024-09-20T12:46:32+00:00

URL: https://externals.io/message/125596#125640 · In reply to: #125639

> On Tuesday, 17 September 2024 at 19:04, Juliette Reinders Folmer 
> <php-internals_nospam@adviesenzo.nl> wrote:
> > […]
>
> As Christoph has already said, the RFC indicated PHP 8.X where X is 
> greater than 3.
> So no it did not need to land in 8.4.
>
> Considering that I personally find it unlikely that the next version 
> is going to be 9.0 (now I may be wrong but we don't really have any 
> strong indications for doing this bump) and people were already 
> uncomfortable at the timeline I proposed when the RFC got voted;
> I found it better to let another deprecation free version for people 
> to move to `str_increment()`.
>
> I did not forget about this and had it on the planned list of things 
> to tackle for PHP 8.5.
>
Thanks for clarifying and confirming Gina. Makes sense to me. Just 
wanted to be sure.

Smile,
Juliette
