diff --git a/lib/Utility/HtmlUtil.php b/lib/Utility/HtmlUtil.php index 779a6232c..853260f42 100644 --- a/lib/Utility/HtmlUtil.php +++ b/lib/Utility/HtmlUtil.php @@ -89,7 +89,7 @@ private static function partialContent(string $partialName) { public static function addWebpackScript(string $name) { $manifest = self::getManifest(); $hashedName = \substr($manifest["$name.js"], 0, -3); // the extension is cropped from the name in $manifest - if (\method_exists('\OCP\Util', 'addInitScript')) { + if (\method_exists(\OCP\Util::class, 'addInitScript')) { \OCP\Util::/** @scrutinizer ignore-call */addInitScript('music', '../dist/' . $hashedName); } else { \OCP\Util::addScript('music', '../dist/' . $hashedName);