rfc:autovivification_false

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rfc:autovivification_false [2021/06/09 19:31] – Make it false only again dharmanrfc:autovivification_false [2021/06/23 21:11] – Close voting dharman
Line 2: Line 2:
   * Date: 2021-05-25   * Date: 2021-05-25
   * Author: Kamil Tekiela <dharman@php.net>   * Author: Kamil Tekiela <dharman@php.net>
-  * Status: Under Discussion+  * Status: Accepted 
 +  * Draft implementation: https://github.com/php/php-src/pull/7131
   * Target Version: PHP 8.1   * Target Version: PHP 8.1
  
Line 21: Line 22:
 </PHP> </PHP>
  
-This RFC talks **only about autovivification from %%false%%. +This RFC talks **only about autovivification from %%false%%**
  
 ===== Proposal ===== ===== Proposal =====
Line 29: Line 30:
 > Cannot use a scalar value as an array > Cannot use a scalar value as an array
  
-In PHP 8.1, appending to a variable of type false will display a deprecation notice. +In PHP 8.1, appending to a variable of type false will display a deprecation notice. For example:
  
-In PHP 9.0, this will throw a fatal error. +> Deprecated: Automatic conversion of false to array is deprecated in 
 + 
 +In PHP 9.0, this will throw a fatal error, the same as for other scalar types
  
 ===== Rationale ===== ===== Rationale =====
Line 55: Line 58:
  
 Should we deprecate autovivification from false? Should we deprecate autovivification from false?
 +
 +Started: 2021-06-09T20:00:00Z\\
 +Ends: 2021-06-23T20:00:00Z
  
 <doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="true">  <doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="true"> 
Line 61: Line 67:
 </doodle> </doodle>
  
 +===== Discussion on internals ======
 +
 +https://externals.io/message/114595
  
rfc/autovivification_false.txt · Last modified: 2021/07/20 16:42 by dharman