Skip to content

Commit 85257a5

Browse files
committed
Fixed return type error in the Doctrine custom types
1 parent b3e8f1a commit 85257a5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This changelog references the relevant changes done between versions.
55
To get the diff for a specific change, go to https://github.com/LIN3S/SharedKernel/commit/XXX where XXX is the change hash
66
To get the diff between two versions, go to https://github.com/LIN3S/SharedKernel/compare/v0.7.0...v0.8.0
77

8+
* 0.9.3
9+
* Fixed return type error in the Doctrine custom types.
810
* 0.9.2
911
* Added comment support for Doctrine's custom types.
1012
* 0.9.1

src/LIN3S/SharedKernel/Infrastructure/Persistence/Doctrine/DBAL/Domain/Model/Iban/Types/IbanType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform) : ?st
3434
public function convertToPHPValue($value, AbstractPlatform $platform) : ?Iban
3535
{
3636
if (null === $value) {
37-
return;
37+
return null;
3838
}
3939

4040
return Iban::from($value);

src/LIN3S/SharedKernel/Infrastructure/Persistence/Doctrine/DBAL/Domain/Model/Phone/Types/PhoneType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform) : ?st
3434
public function convertToPHPValue($value, AbstractPlatform $platform) : ?Phone
3535
{
3636
if (null === $value) {
37-
return;
37+
return null;
3838
}
3939

4040
return Phone::fromInternatinal($value);

src/LIN3S/SharedKernel/Infrastructure/Persistence/Doctrine/DBAL/Domain/Model/TaxIdNumber/Types/TaxIdNumberType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform) : ?st
3434
public function convertToPHPValue($value, AbstractPlatform $platform) : ?TaxIdNumber
3535
{
3636
if (null === $value) {
37-
return;
37+
return null;
3838
}
3939

4040
return TaxIdNumber::fromSpain($value);

0 commit comments

Comments
 (0)