6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravelで手軽に静的解析

Last updated at Posted at 2018-07-29

静的解析をしよう

PhpstanにLaravel用のwrapperをかぶせたその名もLarastan

動作環境

PHP 7.1.3+
Laravel 5.6+

インストール

composer require --dev nunomaduro/larastan

実行

php artisan code:analyse

オプション

php artisan code:analyse --level=5

オプションで0から7のチェックの度合いを渡せます(0はゆるゆる、7はきびしい)
何も指定しないと5
--level=maxを指定すると7を指定したことになります

php artisan code:analyse --paths="modules,app,domain"

パスも指定できるようになりました

詳しくはこちら

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?