Fix unregister storage backend

这个提交包含在:
fabrixxm 2018-12-12 20:35:18 +01:00 提交者 Hypolite Petovan
父节点 f2b29f6591
当前提交 2f935a1fbf
共有 1 个文件被更改,包括 2 次插入2 次删除

查看文件

@ -95,7 +95,7 @@ class StorageManager
*
* @param string $name User readable backend name
*/
public static function unregister($class)
public static function unregister($name)
{
self::setup();
unset(self::$backends[$name]);
@ -114,7 +114,7 @@ class StorageManager
*
* @retur int Number of moved resources
*/
public static function move(string $dest, $tables = null)
public static function move($dest, $tables = null)
{
if (is_null($dest) || empty($dest)) {
throw Exception('Can\'t move to NULL storage backend');