Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[12.x] incorrect use of generics in Schema\Builder #55687

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

Merged
merged 2 commits into from
May 9, 2025

Conversation

taka-oyama
Copy link
Contributor

@taka-oyama taka-oyama commented May 9, 2025

#55607 added generics to Schema\Builder class, but it's used incorrectly.

If you define a template for a class, the type should appear in the constructor which doesn't happen in this case.

The author probably thought @template was a type alias (like @phpstan-type or @psalm-type).

This PR removes the @template and just embeds type in the docs.

@taka-oyama taka-oyama changed the title fix: incorrect use of generics in Schema\Builder [12.x] incorrect use of generics in Schema\Builder May 9, 2025
@taylorotwell taylorotwell merged commit 678f8b6 into laravel:12.x May 9, 2025
58 checks passed
@shaedrich
Copy link
Contributor

Ahem, what made you think that? @template is used for generic

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

Successfully merging this pull request may close these issues.

3 participants