File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ function display_help {
96
96
echo " ${GREEN} sail phpunit ...${NC} Run PHPUnit"
97
97
echo " ${GREEN} sail pest ...${NC} Run Pest"
98
98
echo " ${GREEN} sail pint ...${NC} Run Pint"
99
+ echo " ${GREEN} sail phpstan ...${NC} Run Phpstan"
99
100
echo " ${GREEN} sail dusk${NC} Run the Dusk tests (Requires the laravel/dusk package)"
100
101
echo " ${GREEN} sail dusk:fails${NC} Re-run previously failed Dusk tests (Requires the laravel/dusk package)"
101
102
echo
@@ -345,6 +346,18 @@ elif [ "$1" == "pint" ]; then
345
346
sail_is_not_running
346
347
fi
347
348
349
+ # Proxy the "PHPStan" command to "php vendor/bin/phpstan analyse --generate-baseline"...
350
+ elif [ " $1 " == " phpstan" ]; then
351
+ shift 1
352
+
353
+ if [ " $EXEC " == " yes" ]; then
354
+ ARGS+=(exec -u " $APP_USER " )
355
+ [ ! -t 0 ] && ARGS+=(-T)
356
+ ARGS+=(" $APP_SERVICE " php vendor/bin/phpstan analyse --generate-baseline)
357
+ else
358
+ sail_is_not_running
359
+ fi
360
+
348
361
# Proxy the "dusk" command to the "php artisan dusk" Artisan command...
349
362
elif [ " $1 " == " dusk" ]; then
350
363
shift 1
You can’t perform that action at this time.
0 commit comments