Re: [PHP-DEV] [VOTE] Undefined Property Error Promotion

2022-04-22 Thread Rowan Tommins
On 22/04/2022 21:47, Mark Randall wrote: The rule that anything typed must be initialized, nullable or not, is clearish enough. It's "clear" in the sense of "it can be described in one sentence". It's not at all "clear" in the sense of "makes any logical sense whatsoever". You could specia

Re: [PHP-DEV] [VOTE] Undefined Property Error Promotion

2022-04-22 Thread Mark Randall
On 22/04/2022 21:30, Rowan Tommins wrote: Do you not have even a little bit of hope that we could make that less confusing, since we're breaking everyone's old code anyway? I seem to remember we had a discussion years ago about deleting unset on properties, but it was being used for a very po

Re: [PHP-DEV] [VOTE] Undefined Property Error Promotion

2022-04-22 Thread Rowan Tommins
On 22/04/2022 18:12, Mark Randall wrote: Accessing an unset property, which currently emits a warning, will instead throw an Error. [...] Re: Case 4, an untyped property without its own initializer is effectively defaulted to null. Imagine you're a new user, learning PHP 9.0, and learning

Re: [PHP-DEV] [VOTE] Undefined Property Error Promotion

2022-04-22 Thread Mark Randall
On 22/04/2022 14:42, Rowan Tommins wrote: As with your previous RFC, I approve of this in principle, but am frustrated how little time has been spent considering the edge cases, such as the ones I mentioned here: https://externals.io/message/117487#117487 Accessing an unset property, which cur

Re: [PHP-DEV] [VOTE] Undefined Property Error Promotion

2022-04-22 Thread Rowan Tommins
On 21 April 2022 22:45:17 BST, Mark Randall wrote: >Internals, > >I have now opened voting on Undefined Property Error Promotion. > >https://wiki.php.net/rfc/undefined_property_error_promotion As with your previous RFC, I approve of this in principle, but am frustrated how little time has been s

[PHP-DEV] Re: [RFC][Vote] Deprecate ${} string interpolation

2022-04-22 Thread Ilija Tovilo
Hi everyone > I opened the vote on the "Deprecate ${} string interpolation" RFC. > https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation This RFC has been accepted. There were 31 votes in favor and 1 vote against this change. Ilija -- PHP Internals - PHP Runtime Development Mail

Re: [PHP-DEV] Re: MySQLi Execute Query RFC

2022-04-22 Thread Guilliam Xavier
Hi Craig, > https://wiki.php.net/rfc/mysqli_execute_query > Thanks. Maybe add (or even start with) an example of mysqli_query(), to show how "migrating to safer" would become easier? retro-fitting your example of parameterised query: ``` $sql_format = "SELECT * FROM user WHERE name LIKE %s AND