Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find Fluent methods in migration files. #4

Open
taufek opened this issue Feb 5, 2018 · 1 comment
Open

Unable to find Fluent methods in migration files. #4

taufek opened this issue Feb 5, 2018 · 1 comment
Assignees
Labels

Comments

@taufek
Copy link

taufek commented Feb 5, 2018

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
Copy link
Contributor

twistor commented Mar 21, 2018

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

@twistor twistor added the bug label Mar 21, 2018
@twistor twistor self-assigned this Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants