File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ parameters:
22 level : 10
33 paths :
44 - src
5- - tests
5+ - tests
6+ reportUnmatchedIgnoredErrors : false
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ public function testReportsWrongCollation(): void
4040 'Laravel migrations must set table collation to "utf8mb4" in Schema::create(). ' ,
4141 15 ,
4242 ],
43+ [
44+ 'No error with identifier method.notFound is reported on line 17. ' ,
45+ 17
46+ ]
4347 ]
4448 );
4549 }
@@ -48,7 +52,12 @@ public function testAllowsCorrectCollationTopLevel(): void
4852 {
4953 $ this ->analyse (
5054 [__DIR__ . '/fixtures/AllowCollation.php ' ],
51- []
55+ [
56+ [
57+ 'No error with identifier method.notFound is reported on line 17. ' ,
58+ 17
59+ ]
60+ ]
5261 );
5362 }
5463
@@ -68,7 +77,7 @@ public function testDoesNotReportOutsideLaravelMigration(): void
6877 [
6978 'No error to ignore is reported on line 15. ' ,
7079 15 ,
71- ]
80+ ],
7281 ],
7382 );
7483 }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ final class AllowCollation extends Migration
1313 public function up (): void
1414 {
1515 Schema::create ('users ' , function (Blueprint $ table ): void {
16+ /** @phpstan-ignore method.notFound */
1617 $ table ->collation ('utf8mb4 ' );
1718 $ table ->string ('email ' );
1819 });
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ final class WrongCollation extends Migration
1313 public function up (): void
1414 {
1515 Schema::create ('users ' , function (Blueprint $ table ): void {
16+ /** @phpstan-ignore method.notFound */
1617 $ table ->collation ('utf8 ' );
1718 $ table ->string ('email ' );
1819 });
You can’t perform that action at this time.
0 commit comments