From 6d2bc06bf483de995380aa76e5984276ffbd353b Mon Sep 17 00:00:00 2001 From: Brandon Kelly Date: Thu, 5 Mar 2015 05:00:28 -0800 Subject: [PATCH] Corrected the Component::__isset() docs __isset() returns true if the property is set; not if it's null. --- framework/base/Component.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/base/Component.php b/framework/base/Component.php index 72ea35c203..b3d3ace50e 100644 --- a/framework/base/Component.php +++ b/framework/base/Component.php @@ -199,16 +199,16 @@ class Component extends Object } /** - * Checks if a property value is null. + * Checks if a property value is set. * This method will check in the following order and act accordingly: * - * - a property defined by a setter: return whether the property value is null - * - a property of a behavior: return whether the property value is null + * - a property defined by a setter: return whether the property value is set + * - a property of a behavior: return whether the property value is set * * Do not call this method directly as it is a PHP magic method that * will be implicitly called when executing `isset($component->property)`. * @param string $name the property name or the event name - * @return boolean whether the named property is null + * @return boolean whether the named property is set */ public function __isset($name) {