rfc:autovivification_false
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:autovivification_false [2021/06/09 19:31] – Make it false only again dharman | rfc: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 < | * Author: Kamil Tekiela < | ||
- | * Status: | + | * Status: |
- | * Target Version: PHP 8.1 | + | * Implementation: https:// |
===== Introduction ===== | ===== Introduction ===== | ||
Line 21: | Line 21: | ||
</ | </ | ||
- | This RFC talks **only about autovivification from %%false%%. | + | This RFC talks **only about autovivification from %%false%%**. |
===== Proposal ===== | ===== Proposal ===== | ||
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. |
- | 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 57: | ||
Should we deprecate autovivification from false? | Should we deprecate autovivification from false? | ||
+ | |||
+ | Started: 2021-06-09T20: | ||
+ | Ends: 2021-06-23T20: | ||
<doodle title=" | <doodle title=" | ||
Line 61: | Line 66: | ||
</ | </ | ||
+ | ===== Discussion on internals ====== | ||
+ | |||
+ | https:// | ||
rfc/autovivification_false.txt · Last modified: 2021/07/20 16:42 by dharman