Using version ^3.4 for irazasyed/telegram-bot-sdk
./composer.json has been updated
Running composer update irazasyed/telegram-bot-sdk
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
composer suggest to see details.Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
TypeError
Argument 1 passed to Telegram\Bot\BotsManager::__construct() must be of the type array, null given, called in /var/www/vendor/irazasyed/telegram-bot-sdk/src/Laravel/TelegramServiceProvider.php on line 58
at vendor/irazasyed/telegram-bot-sdk/src/BotsManager.php:29
25| * TelegramManager constructor.
26| *
27| * @param array $config
28| */
29| public function __construct(array $config)
30| {
31| $this->config = $config;
32| }
33|
+20 vendor frames
21 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
same error
run php artisan config:cache first, to clear config cache before that
same error:
laravel: 8.12
php 7.3
Hey guy,
You should clear your config cache manually by remove it at bootstrap/cache/config.php
Then everything will work!
Hey guy,
You should clear your config cache manually by remove it at bootstrap/cache/config.php
Then everything will work!
thanks @quangtam i removed config.php then everything well
Most helpful comment
Hey guy,
You should clear your config cache manually by remove it at bootstrap/cache/config.php
Then everything will work!