Skip to content

Commit

Permalink
fix FloatEnumType to use float declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
VasekPurchart committed Apr 29, 2017
1 parent 58bda83 commit 5181551
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Enum/Type/FloatEnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Doctrine\DBAL\Platforms\AbstractPlatform;

class FloatEnumType extends \Doctrine\DBAL\Types\IntegerType
class FloatEnumType extends \Doctrine\DBAL\Types\FloatType
{

const NAME = 'float_enum';
Expand All @@ -18,9 +18,9 @@ public function getName()
}

/**
* @param \Consistence\Enum\Enum|integer|null $value
* @param \Consistence\Enum\Enum|float|null $value
* @param \Doctrine\DBAL\Platforms\AbstractPlatform $platform
* @return integer|null
* @return float|null
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
Expand Down

0 comments on commit 5181551

Please sign in to comment.