diff options
author | Anna <anna@nextcloud.com> | 2024-09-15 23:01:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 23:01:22 +0200 |
commit | 6892500405b689240e86527badbb91b1aa9d2e35 (patch) | |
tree | 6fa8f80741886d32a2b0106a4fa1da9992d0c954 /lib/public | |
parent | 6e983ce2075f96bc28de8367675c96c9473bcdfc (diff) | |
parent | 1ee833efab85f484469f15267c6b32bb0ce55d20 (diff) | |
download | nextcloud-server-6892500405b689240e86527badbb91b1aa9d2e35.tar.gz nextcloud-server-6892500405b689240e86527badbb91b1aa9d2e35.zip |
Merge pull request #48046 from nextcloud/refactor/self-class-reference
refactor: Replace __CLASS__ with ::class references
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/LockNotAcquiredException.php | 2 | ||||
-rw-r--r-- | lib/public/HintException.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/Files/LockNotAcquiredException.php b/lib/public/Files/LockNotAcquiredException.php index 19e0bbc2543..93d861c248f 100644 --- a/lib/public/Files/LockNotAcquiredException.php +++ b/lib/public/Files/LockNotAcquiredException.php @@ -35,6 +35,6 @@ class LockNotAcquiredException extends \Exception { * @since 7.0.0 */ public function __toString(): string { - return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; + return self::class . ": [{$this->code}]: {$this->message}\n"; } } diff --git a/lib/public/HintException.php b/lib/public/HintException.php index 97abf777ab1..6d9684bddea 100644 --- a/lib/public/HintException.php +++ b/lib/public/HintException.php @@ -43,7 +43,7 @@ class HintException extends \Exception { * @return string */ public function __toString(): string { - return __CLASS__ . ": [{$this->code}]: {$this->message} ({$this->hint})\n"; + return self::class . ": [{$this->code}]: {$this->message} ({$this->hint})\n"; } /** |