mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-20232 making "object" class extend stdClass - this greatly helps with type checking
This commit is contained in:
parent
0a941490ec
commit
b08b356960
@ -39,13 +39,15 @@ define ('DEBUG_ALL', 6143);
|
||||
define ('DEBUG_DEVELOPER', 38911);
|
||||
|
||||
/**
|
||||
* Simple class
|
||||
* Simple class. It is usually used instead of stdClass because it looks
|
||||
* more familiar to Java develpers ;-) Do not use for type checking of
|
||||
* function parameters.
|
||||
*
|
||||
* @package moodlecore
|
||||
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class object {};
|
||||
class object extends stdClass {};
|
||||
|
||||
/**
|
||||
* Base Moodle Exception class
|
||||
|
Loading…
x
Reference in New Issue
Block a user