Skip to content

Commit

Permalink
Pull in Return Types from 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zanbaldwin committed May 19, 2022
1 parent 636e8f3 commit 93b1390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Doctrine/AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getSQLDeclaration(array $column, AbstractPlatform $platform)
/**
* {@inheritdoc}
* @throws \Doctrine\DBAL\Types\ConversionException
* @return mixed
* @return \Darsyn\IP\IpInterface|null
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
Expand All @@ -66,6 +66,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
}
/** @var string|\Darsyn\IP\IpInterface $value */
if (\is_a($value, $this->getIpClass(), false)) {
/** @var \Darsyn\IP\IpInterface $value */
return $value;
}
/** @var string $value */
Expand All @@ -79,7 +80,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)
/**
* {@inheritdoc}
* @throws \Doctrine\DBAL\Types\ConversionException
* @return mixed
* @return string|null
*/
public function convertToDatabaseValue($value, AbstractPlatform $platform)
{
Expand Down

0 comments on commit 93b1390

Please sign in to comment.