Skip to content

Commit 65a9c9b

Browse files
chore: adopt new schema builder class constructor
laravel/framework#51821
1 parent 5507cf7 commit 65a9c9b

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,12 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [8.4, 8.3, 8.2, 8.1]
17-
laravel: [12.*, 11.*, 10.*]
16+
php: [8.4, 8.3, 8.2]
17+
laravel: [12.*]
1818
stability: [prefer-lowest, prefer-stable]
1919
include:
2020
- laravel: 12.*
2121
testbench: 10.*
22-
- laravel: 11.*
23-
testbench: 9.*
24-
- laravel: 10.*
25-
testbench: 8.*
26-
exclude:
27-
- laravel: 12.*
28-
php: 8.1
29-
- laravel: 11.*
30-
php: 8.1
3122

3223
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3324

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^8.1",
22-
"illuminate/support": "^10.0|^11.0|^12.0",
23-
"illuminate/database": "^10.0|^11.0|^12.0"
21+
"php": "^8.2",
22+
"illuminate/support": "^12.0",
23+
"illuminate/database": "^12.0"
2424
},
2525
"require-dev": {
2626
"friendsofphp/php-cs-fixer": "^3.5",
27-
"orchestra/testbench": "^8.0|^9.0|^10.0",
28-
"phpunit/phpunit": "^10.1|^11.0"
27+
"orchestra/testbench": "^10.0",
28+
"phpunit/phpunit": "^11.0"
2929
},
3030
"autoload": {
3131
"psr-4": {

src/Facades/Schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function connection($name): Builder
2121
public static function getSchemaBuilder(Connection $connection): Builder
2222
{
2323
$getSchemaBuilderForGrammar = function (string $grammarClass, string $builderClass) use ($connection): Builder {
24-
$connection->setSchemaGrammar($connection->withTablePrefix(new $grammarClass()));
24+
$connection->setSchemaGrammar(new $grammarClass($connection));
2525

2626
return new $builderClass($connection);
2727
};

0 commit comments

Comments
 (0)