[1.x] Enables `fully_qualified_strict_types` rule
Merged
NU
5mo ago+437+437+012345678901234567890123456789-344-344-012345678901234567890123456789
This pull request enables the fully_qualified_strict_types rule on the Laravel Preset, effectively replacing fully qualified class names with regular imports. For example:
+ use Database\Factories\UserFactory;
class User extends Authenticatable
{
- /** @use HasFactory<\Database\Factories\UserFactory> */
+ /** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
Couple of things to keep in mind:
- This will effect existing projects, meaning once this new "rule" is tagged on pint, existing projects will automatically be styled with this rule. Again, this will effect 100% of existing projects, once, of course, people run
composer update laravel/pint. - List of PRs to merge:
- stubs: https://github.com/laravel/framework/pull/59149 (note: merge 12.x on 13.x)
- src: https://github.com/laravel/laravel/pull/6760 (note: merge 12.x on 13.x)
- src: https://github.com/laravel/maestro/pull/38
- stubs, src: https://github.com/laravel/ai/pull/253
- src: https://github.com/laravel/boost/pull/646
- stubs, src: https://github.com/laravel/breeze/pull/481
- src: https://github.com/laravel/browser-kit-testing/pull/191
- src: https://github.com/laravel/cloud-cli/pull/17
- stubs: https://github.com/laravel/dusk/pull/1188
- stubs: https://github.com/laravel/fortify/pull/659
- stubs: https://github.com/laravel/jetstream/pull/1597
- stubs, src: https://github.com/laravel/mcp/pull/171
- src: https://github.com/laravel/pail/pull/64
- src: https://github.com/laravel/ranger/pull/21
- src: https://github.com/laravel/roster/pull/45
- src: https://github.com/laravel/surveyor/pull/27
- stubs: https://github.com/laravel/ui/pull/285
- src: https://github.com/laravel/wayfinder/pull/192