Commit ec3da53
authored
Fix incorrect docblock for custom builder resolvers (#56392)
* Fix incorrect docblock for custom builder resolvers
Fixes #56152 which was caused by the incorrect parameters being used for a more specific type hint docblock merged in #55687.
This currently causes issues with projects that use static analysis and make use of the $builder->blueprintResolver() method to resolve custom blueprints.
Example below:
------ ----------------------------------------------------------------------------------------------------------
Line Database/DatabaseServiceProvider.php
------ ----------------------------------------------------------------------------------------------------------
:109 Parameter #1 $connection of class Winter\Storm\Database\Schema\Blueprint constructor expects
Illuminate\Database\Connection, string given.
🪪 argument.type
:109 Parameter #2 $table of class Winter\Storm\Database\Schema\Blueprint constructor expects string, Closure
given.
🪪 argument.type
:109 Parameter #3 $callback of class Winter\Storm\Database\Schema\Blueprint constructor expects Closure|null,
string given.
🪪 argument.type
------ ----------------------------------------------------------------------------------------------------------
* Update src/Illuminate/Database/Schema/Builder.php
* Apply suggestions from code review1 parent d41f408 commit ec3da53
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
| |||
0 commit comments