Skip to content

Commit 4f9fbeb

Browse files
committed
Blueprint has a different constructor in older versions
1 parent 4615517 commit 4f9fbeb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

tests/Rules/Laravel/ForbidAfterRuleTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testReportsAfterInFluentChain(): void
2828
17,
2929
],
3030
[
31-
'No error with identifier argument.type is reported on line 15.',
31+
'No error to ignore is reported on line 15.',
3232
15,
3333
],
3434
]
@@ -45,7 +45,7 @@ public function testReportsAfterInsideCreateClosure(): void
4545
25,
4646
],
4747
[
48-
'No error with identifier argument.type is reported on line 20.',
48+
'No error to ignore is reported on line 20.',
4949
20,
5050
],
5151
]
@@ -58,7 +58,7 @@ public function testDoesNotReportOutsideLaravelMigration(): void
5858
[__DIR__ . '/fixtures/NonMigrationClass.php'],
5959
[
6060
[
61-
'No error with identifier argument.type is reported on line 14.',
61+
'No error to ignore is reported on line 14.',
6262
14,
6363
]
6464
],

tests/Rules/Laravel/fixtures/ForbidAfter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class ForbidAfter extends Migration
1111
{
1212
public function up(): void
1313
{
14-
/** @phpstan-ignore argument.type */
14+
/** @phpstan-ignore-next-line */
1515
$table = new Blueprint('users', 'random', null);
1616

1717
$table->string('email')->after('username');

tests/Rules/Laravel/fixtures/ForbidAfterInCreate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up(): void
1616
$schema = new class {
1717
public function create(string $table, callable $callback): void
1818
{
19-
/** @phpstan-ignore argument.type */
19+
/** @phpstan-ignore-next-line */
2020
$callback(new Blueprint($table, 'random', null));
2121
}
2222
};

tests/Rules/Laravel/fixtures/NonMigrationClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class NonMigrationClass
1010
{
1111
public function run(): void
1212
{
13-
/** @phpstan-ignore argument.type */
13+
/** @phpstan-ignore-next-line */
1414
$table = new Blueprint('users', 'random', null);
1515

1616
$table->string('email')->after('username');

0 commit comments

Comments
 (0)