diff options
Diffstat (limited to 'inc/Debug/PropertyDeprecationHelper.php')
-rw-r--r-- | inc/Debug/PropertyDeprecationHelper.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/Debug/PropertyDeprecationHelper.php b/inc/Debug/PropertyDeprecationHelper.php index 6289d5ba8..ed6a2dcba 100644 --- a/inc/Debug/PropertyDeprecationHelper.php +++ b/inc/Debug/PropertyDeprecationHelper.php @@ -1,4 +1,5 @@ <?php + /** * Trait for issuing warnings on deprecated access. * @@ -6,7 +7,6 @@ * */ - namespace dokuwiki\Debug; /** @@ -32,7 +32,6 @@ namespace dokuwiki\Debug; */ trait PropertyDeprecationHelper { - /** * List of deprecated properties, in <property name> => <class> format * where <class> is the the name of the class defining the property @@ -108,7 +107,7 @@ trait PropertyDeprecationHelper // The class name is not necessarily correct here but getting the correct class // name would be expensive, this will work most of the time and getting it // wrong is not a big deal. - return __CLASS__; + return self::class; } // property_exists() returns false when the property does exist but is private (and not // defined by the current class, for some value of "current" that differs slightly @@ -124,7 +123,7 @@ trait PropertyDeprecationHelper $classname = substr($obfuscatedProp, 1, -strlen($obfuscatedPropTail)); if ($classname === '*') { // sanity; this shouldn't be possible as protected properties were handled earlier - $classname = __CLASS__; + $classname = self::class; } return $classname; } |