Because of that, on Laravel 9, psalm shows errors on this code:
Keyboard::make()
Error:
ERROR: TooManyTemplateParams - app/Modules/PasswordManager/Services/PasswordRequestMessageService.php:308:21 - Telegram\Bot\Keyboard\Keyboard<empty, empty> has too many template params, expecting 0 (see https://psalm.dev/184)
$keyboard = Keyboard::make()->inline();
Laravel 9 added PHPDoc template annotation (generics) in collections classes: https://github.com/laravel/framework/pull/38538
Because of that, on Laravel 9, psalm shows errors on this code:
Error:
I added template annotations in this PR:
928