Did something change in the PHP where declaring a variable as a string and later using it as an array is not OK. We upgraded to bitnamies wamp stack and it broke our app. One of the variables
$change="";
Then later used
$change[$k] = "this";
It remains a single string instead of turning into an array. Is this a php.ini config I can change?
As of 7.1 the behavior you describe changed. See change log for Assignment via string index access on an empty string
PHP 7 has seen numerous improvements that make "stricter" typing possible and allow for better type hinting. PHP is still considered a loosely typed language though. Some examples include, as of 7.0, Scalar type declarations, Return type declarations and the
strict_types
directive.