From 6b4d9e2233b1ae7f22e41b74aa923fee0b735f08 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 6 Sep 2023 22:26:45 +0200 Subject: [PATCH] Tell users to uninstall the psr extension --- docs | 2 +- src/Magic.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs b/docs index 61cdff1c4..1890b7b22 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 61cdff1c445fd53456b63d33a6feac12e4023514 +Subproject commit 1890b7b22da5060d5018c22a4c9deddf7e98ce40 diff --git a/src/Magic.php b/src/Magic.php index fa7d1a72f..badd6426c 100644 --- a/src/Magic.php +++ b/src/Magic.php @@ -308,6 +308,9 @@ final class Magic throw Exception::extension($extension); } } + if (\extension_loaded('psr')) { + throw new Exception("Please uninstall the psr extension to use MadelineProto!"); + } self::$BIG_ENDIAN = \pack('L', 1) === \pack('N', 1); self::$hasOpenssl = \extension_loaded('openssl'); self::$emojis = \json_decode(self::JSON_EMOJIS);