Skip to content

Commit 0908ea3

Browse files
authored
Merge pull request #16 from intaro/types-fix
up PHP to 8.0 and fix types
2 parents 83de36c + a464ce1 commit 0908ea3

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
# fail-fast: true
1111
matrix:
1212
version:
13-
- { php: 7.4, composer: 2.x, phpunit: 8.5 }
1413
- { php: 8.0, composer: 2.x, phpunit: 8.5 }
1514
- { php: 8.1, composer: 2.x, phpunit: 8.5 }
1615
- { php: 8.2, composer: 2.x, phpunit: 8.5 }

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=7.4 || >=8.0"
14+
"php": ">=8.0"
1515
},
1616
"require-dev": {
1717
"doctrine/annotations": "~2.0",

src/Doctrine/Types/HStoreType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $pla
1919
return self::HSTORE;
2020
}
2121

22-
public function convertToPHPValue($value, AbstractPlatform $platform)
22+
public function convertToPHPValue($value, AbstractPlatform $platform): mixed
2323
{
2424
if (null === $value) {
2525
return null;
@@ -41,7 +41,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
4141
}
4242
}
4343

44-
public function convertToDatabaseValue($value, AbstractPlatform $platform)
44+
public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed
4545
{
4646
if (null === $value) {
4747
return null;
@@ -63,7 +63,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform)
6363
return Coder::encode($value);
6464
}
6565

66-
public function getName()
66+
public function getName(): string
6767
{
6868
return self::HSTORE;
6969
}

0 commit comments

Comments
 (0)