diff --git a/src/Client.php b/src/Client.php index 7a278f0..64b9abd 100644 --- a/src/Client.php +++ b/src/Client.php @@ -14,8 +14,6 @@ use ReflectionProperty; use RuntimeException; use TelegramApiServer\EventObservers\EventObserver; -use function Amp\Socket\SocketAddress\fromString; - final class Client { public static Client $self; diff --git a/src/Controllers/AbstractApiController.php b/src/Controllers/AbstractApiController.php index d07ffae..e7a40f2 100644 --- a/src/Controllers/AbstractApiController.php +++ b/src/Controllers/AbstractApiController.php @@ -92,7 +92,7 @@ abstract class AbstractApiController switch (true) { case $contentType === 'application/x-www-form-urlencoded': - case \mb_strpos($contentType, 'multipart/form-data') !== false: + case \str_contains($contentType, 'multipart/form-data'): $form = (new StreamingFormParser())->parseForm($this->request); $post = [];