Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators

2023-01-31 Thread Andreas Heigl
Hey All On 01.02.23 07:20, Mark Baker wrote: On 23/01/2023 14:06, G. P. B. wrote: However, the whole point of this RFC is to*remove*  cognitive burden for developers, so they don't even need to be aware of this "feature" and not get surprised when it kicks in. Moreover, by your logic, you wo

Re: [PHP-DEV] [RFC] [Discussion] Typed class constants

2023-01-31 Thread Alexandru Pătrănescu
On Tue, Jan 31, 2023 at 11:01 PM Máté Kocsis wrote: > Hi Everyone, > > A few years ago, Benas Seliuginas announced the "Typed constants" RFC ( > https://externals.io/message/110755) which apparently had a > positive reception overall. > Unfortunately, there were some issues with the implementatio

Re: [PHP-DEV] [RFC] Path to Saner Increment/Decrement operators

2023-01-31 Thread Mark Baker
On 23/01/2023 14:06, G. P. B. wrote: However, the whole point of this RFC is to*remove* cognitive burden for developers, so they don't even need to be aware of this "feature" and not get surprised when it kicks in. Moreover, by your logic, you wouldn't care if we removed support for alphanume

Re: [PHP-DEV] [RFC] [Discussion] Typed class constants

2023-01-31 Thread Mark Niebergall
I initiated a conversation about the typed constants RFC back in March 2022: https://externals.io/message/117406 I had updated the RFC page, but it looks like the changes were reverted in December 2022. The updated version I was working on was: https://wiki.php.net/rfc/typed_class_constants?rev=16

Re: [PHP-DEV] [RFC] [Discussion] Typed class constants

2023-01-31 Thread Ondřej Mirtes
I fully support this RFC. PHPStan added support for PHPDoc types in class constants some time ago - it’s useful to rely on the same constant type even in subclasses when accessing them via static:: or $object::. On Tue 31. 1. 2023 at 22:01, Máté Kocsis wrote: > Hi Everyone, > > A few years ago,

Re: [PHP-DEV] [RFC] [Discussion] Typed class constants

2023-01-31 Thread Larry Garfield
On Tue, Jan 31, 2023, at 3:01 PM, Máté Kocsis wrote: > Hi Everyone, > > A few years ago, Benas Seliuginas announced the "Typed constants" RFC ( > https://externals.io/message/110755) which apparently had a > positive reception overall. > Unfortunately, there were some issues with the implementation

[PHP-DEV] [RFC] [Discussion] Typed class constants

2023-01-31 Thread Máté Kocsis
Hi Everyone, A few years ago, Benas Seliuginas announced the "Typed constants" RFC ( https://externals.io/message/110755) which apparently had a positive reception overall. Unfortunately, there were some issues with the implementation (namely, with the parser) so the RFC was stuck. A few weeks ag

[PHP-DEV] Proposal to add a $length parameter to fpassthru and friends

2023-01-31 Thread Niels Dossche
Hey everyone! Recently I came across a feature request for PHP on GitHub issues: https://github.com/php/php-src/issues/9673. In short, this user would like to have an additional *optional* `?int $length = null` parameter to the fpassthru function. Currently the fpassthru function will output eve