From: skodak Date: Tue, 8 Sep 2009 07:09:01 +0000 (+0000) Subject: MDL-20232 making "object" class extend stdClass - this greatly helps with type checking X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b08b3569604066d3fbb02442beaf308391f43d11;p=moodle.git MDL-20232 making "object" class extend stdClass - this greatly helps with type checking --- diff --git a/lib/setuplib.php b/lib/setuplib.php index f938876c93..65b1f0576a 100644 --- a/lib/setuplib.php +++ b/lib/setuplib.php @@ -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