Deprecate autovivification on false
Deprecate autovivification on false | |
Deprecation | |
Implemented |
RFC Vote: Deprecate autovivification on false
- | |
>= 2/3 | |
Yes: 34No: 2 |
PHP natively allows for autovivification (auto-creation of arrays from falsey values). This feature is very useful and used in a lot of PHP projects, especially if the variable is undefined. However, there is a little oddity that allows creating an array from a false and null value.
The proposal is to disallow autovivification from false values