Merge "rdbms: add transaction comment to IDatabase::masterPosWait()"
[lhc/web/wiklou.git] / includes / libs / virtualrest / VirtualRESTService.php
index ccb14db..c7b76b6 100644 (file)
@@ -51,8 +51,7 @@ abstract class VirtualRESTService {
         * @return string The name of the service behind this VRS object.
         */
        public function getName() {
-               return isset( $this->params['name'] ) ? $this->params['name'] :
-                       get_class( $this );
+               return $this->params['name'] ?? static::class;
        }
 
        /**