MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
This commit is contained in:
@@ -83,7 +83,7 @@ abstract class data_controller {
|
||||
* @throws \coding_exception
|
||||
* @throws \moodle_exception
|
||||
*/
|
||||
public static function create(int $id, \stdClass $record = null, field_controller $field = null): data_controller {
|
||||
public static function create(int $id, ?\stdClass $record = null, ?field_controller $field = null): data_controller {
|
||||
global $DB;
|
||||
if ($id && $record) {
|
||||
// This warning really should be in persistent as well.
|
||||
|
||||
Reference in New Issue
Block a user