Skip to content

Commit ab5cd1c

Browse files
Neutron-ProNeutron-Pro
authored andcommitted
Retrait des type php et update de doctrine/dbal
1 parent 239ed1a commit ab5cd1c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"minimum-stability": "stable",
2121
"require": {
2222
"php": "^7.1 | ^8.0",
23-
"doctrine/dbal": "^2.1",
23+
"doctrine/dbal": "^2.13",
2424
"neutronstars/enum": "^1.4"
2525
},
2626
"require-dev": {

src/EnumType.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,22 @@
1111

1212
abstract class EnumType extends Type
1313
{
14-
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
14+
/**
15+
* @param array $column
16+
* @param AbstractPlatform $platform
17+
* @return string
18+
*/
19+
public function getSQLDeclaration(array $column, $platform): string
1520
{
1621
return Types::STRING;
1722
}
1823

19-
public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
24+
/**
25+
* @param mixed $value
26+
* @param AbstractPlatform $platform
27+
* @return string|null
28+
*/
29+
public function convertToDatabaseValue($value, $platform): ?string
2030
{
2131
return ($value instanceof Enum) ? (string) $value : null;
2232
}

0 commit comments

Comments
 (0)