Repository: ucan-lab/laravel-dacapo (php)

Issue:
PHPStan Call to an undefined method Illuminate\Support\Fluent::language().
```
$ ./tools/phpstan/vendor/bin/phpstan analyse -c phpstan.neon
 327/327 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ---------------------------------------------------------------------------------------------------------------- 
  Line   tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php  
 ------ ---------------------------------------------------------------------------------------------------------------- 
  19     Call to an undefined method Illuminate\Support\Fluent::language().                                              
  20     Call to an undefined method Illuminate\Support\Fluent::language(). 
```

Pull request description:
PHPStan Call to an undefined method Illuminate\Support\Fluent::language().
close #182 

Patch:
diff --git a/phpstan.neon b/phpstan.neon
index 59ae674..1780ba3 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -3,3 +3,7 @@ parameters:
   paths:
     - src
     - tests
+  ignoreErrors:
+    -
+      message: '#Call to an undefined method [a-zA-Z0-9\\_]+::language\(\)#'
+      path: tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php


Test patch:
diff --git a/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000001_create_example5_table.php b/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000001_create_example5_table.php
index 2e2795d..260d8a5 100644
--- a/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000001_create_example5_table.php
+++ b/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000001_create_example5_table.php
@@ -17,6 +17,8 @@ return new class extends Migration
             $table->bigIncrements('id');
             $table->longText('body1');
             $table->longText('body2');
+            $table->longText('body3');
+            $table->longText('body4');
         });
     }
 
diff --git a/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php b/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php
index 1930268..7799d36 100644
--- a/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php
+++ b/tests/Application/UseCase/DacapoCommandTest/mysql/index/migrations/1970_01_01_000002_create_example5_index.php
@@ -16,6 +16,8 @@ return new class extends Migration
         Schema::table('example5', function (Blueprint $table) {
             $table->fullText('body1');
             $table->fullText('body2', 'example5_body2_fullText');
+            $table->fullText('body3')->language('english');
+            $table->fullText('body4', 'example5_body4_fullText')->language('english');
         });
     }
 
@@ -29,6 +31,8 @@ return new class extends Migration
         Schema::table('example5', function (Blueprint $table) {
             $table->dropFullText(['body1']);
             $table->dropFullText('example5_body2_fullText');
+            $table->dropFullText(['body3']);
+            $table->dropFullText('example5_body4_fullText');
         });
     }
 };
diff --git a/tests/Application/UseCase/DacapoCommandTest/mysql/index/schemas/schema.yml b/tests/Application/UseCase/DacapoCommandTest/mysql/index/schemas/schema.yml
index a5b3e47..d2d687a 100644
--- a/tests/Application/UseCase/DacapoCommandTest/mysql/index/schemas/schema.yml
+++ b/tests/Application/UseCase/DacapoCommandTest/mysql/index/schemas/schema.yml
@@ -41,9 +41,18 @@ example5:
     id: bigIncrements
     body1: longText
     body2: longText
+    body3: longText
+    body4: longText
   indexes:
     - columns: body1
       type: fullText
     - columns: body2
       type: fullText
       name: example5_body2_fullText
+    - columns: body3
+      type: fullText
+      language: english
+    - columns: body4
+      type: fullText
+      language: english
+      name: example5_body4_fullText