Skip to content

Unable to find Fluent methods in migration files. #4

@taufek

Description

@taufek

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions