Skip to content

Commit

Permalink
up PHP to 8.0 and fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
muxx committed Oct 11, 2024
1 parent 83de36c commit a464ce1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
# fail-fast: true
matrix:
version:
- { php: 7.4, composer: 2.x, phpunit: 8.5 }
- { php: 8.0, composer: 2.x, phpunit: 8.5 }
- { php: 8.1, composer: 2.x, phpunit: 8.5 }
- { php: 8.2, composer: 2.x, phpunit: 8.5 }
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"php": ">=7.4 || >=8.0"
"php": ">=8.0"
},
"require-dev": {
"doctrine/annotations": "~2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/Doctrine/Types/HStoreType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $pla
return self::HSTORE;
}

public function convertToPHPValue($value, AbstractPlatform $platform)
public function convertToPHPValue($value, AbstractPlatform $platform): mixed
{
if (null === $value) {
return null;
Expand All @@ -41,7 +41,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
}
}

public function convertToDatabaseValue($value, AbstractPlatform $platform)
public function convertToDatabaseValue($value, AbstractPlatform $platform): mixed
{
if (null === $value) {
return null;
Expand All @@ -63,7 +63,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform)
return Coder::encode($value);
}

public function getName()
public function getName(): string
{
return self::HSTORE;
}
Expand Down

0 comments on commit a464ce1

Please sign in to comment.