Skip to content
Snippets Groups Projects
Commit 058f46f7 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3201

Closes #3201

Merge request studip/studip!2167
parent 1dbaac0a
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ class StudipAutoloader ...@@ -62,7 +62,7 @@ class StudipAutoloader
*/ */
public static function register() public static function register()
{ {
spl_autoload_register('static::loadClass'); spl_autoload_register([static::class, 'loadClass']);
} }
...@@ -71,7 +71,7 @@ class StudipAutoloader ...@@ -71,7 +71,7 @@ class StudipAutoloader
*/ */
public static function unregister() public static function unregister()
{ {
spl_autoload_unregister('static::loadClass'); spl_autoload_unregister([static::class, 'loadClass']);
} }
/** /**
...@@ -151,7 +151,7 @@ class StudipAutoloader ...@@ -151,7 +151,7 @@ class StudipAutoloader
*/ */
public static function addClassLookups(array $map) public static function addClassLookups(array $map)
{ {
$map = array_map('self::sanitizePath', $map); $map = array_map([self::class, 'sanitizePath'], $map);
self::$class_lookup = array_merge(self::$class_lookup, $map); self::$class_lookup = array_merge(self::$class_lookup, $map);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment