mll-lab / laravel-strict-stubs
v2.0.1
2023-02-14 14:32 UTC
Requires
- php: ^8
- illuminate/contracts: ^8.37 || ^9
Requires (Dev)
- ergebnis/composer-normalize: ^2.28.3
- mll-lab/php-cs-fixer-config: ^4.4.1
- nunomaduro/larastan: ^1.0.3 || ^2.1.11
- orchestra/testbench: ^6.24.1 || ^7.6.0
- phpstan/phpstan-phpunit: ^1.1.1
- phpunit/phpunit: ^9.5.21
README
此包现已集成到 mll-lab/laravel-utils
。
laravel-strict-stubs
默认 Laravel 生成器存根的严格类型替换
安装
composer require --dev mll-lab/laravel-strict-stubs
使用
要持续保持您的存根更新为该包的最新版本,请将 /stubs
添加到您的 .gitignore
,并在您的 composer.json
中添加以下内容:
"scripts": {
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
+ "@php artisan vendor:publish --tag=strict-stubs --force"
]
}