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
rfc:autovivification_false [2021/06/09 19:38] – Open voting dharmanrfc:autovivification_false [2021/07/20 16:42] (current) – Implemented 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: Voting +  * Status: Implemented in PHP 8.1 
-  * Target VersionPHP 8.1+  * Implementationhttps://github.com/php/php-src/pull/7131
  
 ===== Introduction ===== ===== Introduction =====
Line 29: Line 29:
 > 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 59: Line 61:
 Ends: 2021-06-23T20:00:00Z Ends: 2021-06-23T20:00:00Z
  
-<doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="false"> +<doodle title="Deprecate autovivification from false?" auth="dharman" voteType="single" closed="true"> 
    * Yes    * Yes
    * No    * No
rfc/autovivification_false.1623267485.txt.gz · Last modified: 2021/06/09 19:38 by dharman