Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm check issue with generics #929

Closed
Kravets1996 opened this issue Feb 26, 2022 · 1 comment
Closed

Psalm check issue with generics #929

Kravets1996 opened this issue Feb 26, 2022 · 1 comment

Comments

@Kravets1996
Copy link
Contributor

Kravets1996 commented Feb 26, 2022

Laravel 9 added PHPDoc template annotation (generics) in collections classes:
laravel/framework#38538

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();

I added template annotations in this PR:
#928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants