MDL-67307 core: Fix onject creation from empty value cases
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 19 Nov 2019 17:54:46 +0000 (18:54 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 22 Nov 2019 00:40:42 +0000 (01:40 +0100)
commit88d88bd92e3e91b585a0cabb26d012ec81a60081
treeb456839648b362ef3a7e3428ed749d165657403b
parenta5f618d6a988547c31da73f2e5fff48c48c776fb
MDL-67307 core: Fix onject creation from empty value cases

The "creating default object from empty value" warning is now consistently
thrown if a falsy value is promoted into an stdClass object. Previously some
cases like `$null->prop[0] = $val` missed this warning.
lib/outputcomponents.php
mod/assign/locallib.php