Weebly / phpstan-laravel

Laravel plugins for PHPStan
BSD 2-Clause "Simplified" License
51 stars 22 forks source link

Unable to find Fluent methods in migration files. #4

Open taufek opened 6 years ago

taufek commented 6 years ago

I'm getting violation below when running with a migration file

△ laravel> phpstan analyze -c phpstan.neon -l max database/migrations/2014_10_12_000000_create_users_table.php

 1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ------------------------------------------------------------------
  Line   2014_10_12_000000_create_users_table.php
 ------ ------------------------------------------------------------------
  19     Call to an undefined method Illuminate\Support\Fluent::unique().
 ------ ------------------------------------------------------------------

 [ERROR] Found 1 error

Below is my phpstan.neon content.

includes:
  - vendor/weebly/phpstan-laravel/extension.neon
twistor commented 6 years ago

Yep, haven't added any migration support yet. Will try to get to this soon.