From 6cdca88f13b7ec81841eaa69d6b5b2d9dd7b36da Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 5 Dec 2021 17:42:09 +0100 Subject: [PATCH] Cs-fix --- src/danog/MadelineProto/API.php | 2 +- src/danog/MadelineProto/MTProtoTools/GarbageCollector.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index 0941163ff..9ab691b47 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -323,7 +323,7 @@ class API extends InternalDoc // Success, IPC client $this->API = new Client($unserialized, $this->session, Logger::$default, $this->async); $this->APIFactory(); - if ($settings) { + if (!$settings instanceof SettingsEmpty) { $this->API->updateSettings($settings); } return true; diff --git a/src/danog/MadelineProto/MTProtoTools/GarbageCollector.php b/src/danog/MadelineProto/MTProtoTools/GarbageCollector.php index adb7de8b8..16ea42fba 100644 --- a/src/danog/MadelineProto/MTProtoTools/GarbageCollector.php +++ b/src/danog/MadelineProto/MTProtoTools/GarbageCollector.php @@ -5,7 +5,6 @@ namespace danog\MadelineProto\MTProtoTools; use Amp\Loop; use danog\MadelineProto\Logger; use danog\MadelineProto\Magic; -use ReflectionClass; final class GarbageCollector {