From 36b52da5e7ce8037ebf7daa4de21d4589cbd9764 Mon Sep 17 00:00:00 2001 From: Dmitry Vorobyev Date: Tue, 29 Oct 2024 16:09:51 -0400 Subject: [PATCH] [-] Duplicate Class Declaration Error with Commands Matching Message Types (e.g., LocationCommand) --- src/Telegram.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Telegram.php b/src/Telegram.php index 506af69f..376d78c1 100644 --- a/src/Telegram.php +++ b/src/Telegram.php @@ -347,7 +347,7 @@ public function getCommandClassName(string $auth, string $command, string $filep $command_class = $command_namespace . '\\' . $this->commandNameToClassName($command); - if (class_exists($command_class)) { + if (class_exists($command_class, false)) { return $command_class; }