Skip to content

Commit 751724e

Browse files
committed
feat: add support php 8.1
1 parent 2ae3b76 commit 751724e

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
"require": {
2020
"php": "^8.0|^8.1",
2121
"ext-pdo": "*",
22-
"illuminate/database": "^8.78",
22+
"illuminate/database": "^8.78|^9.25",
2323
"doctrine/dbal": "^2.6|^3.4"
2424
},
2525
"require-dev": {
2626
"phpunit/phpunit": "^9.5",
27-
"orchestra/testbench": "^6.24",
27+
"orchestra/testbench": "^6.24|^7.6",
2828
"squizlabs/php_codesniffer": "^3.7"
2929
},
3030
"autoload": {

src/Schema/Postgres/Connection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ public function bindValues($statement, $bindings): void
8888

8989
public function registerInitialTypes(): void
9090
{
91-
$builder = $this->getSchemaBuilder();
9291
foreach ($this->initialTypes as $type => $typeClass) {
93-
$builder->registerCustomDoctrineType($typeClass, $type, $type);
92+
$this->registerDoctrineType($typeClass, $type, $typeClass);
9493
}
9594
}
9695

src/Schema/Postgres/Types/GeoPathType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class GeoPathType extends Type
1515
{
1616
public const TYPE_NAME = 'path';
1717

18-
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
18+
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
1919
{
2020
return static::TYPE_NAME;
2121
}

src/Schema/Postgres/Types/XmlType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class XmlType extends Type
1515
{
1616
public const TYPE_NAME = 'xml';
1717

18-
public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
18+
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
1919
{
2020
return static::TYPE_NAME;
2121
}

0 commit comments

Comments
 (0)