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
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
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
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
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
On Tuesday, 17 September 2024 at 19:04, 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.Anyone around who can tell me what the status is ?
Smile,
JulietteAs 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