Skip to content

Commit

Permalink
Add missing method return types
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Feb 18, 2022
1 parent b3100f9 commit 59ff565
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Serializer/Normalizer/MoneyAsDecimalNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file is part of the Symfony HeadsnetMoneyBundle.
*
* (c) Headstrong Internet Services Ltd 2021
* (c) Headstrong Internet Services Ltd 2022
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -51,7 +51,7 @@ public function normalize($object, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsNormalization($data, $format = null)
public function supportsNormalization($data, $format = null): bool
{
return $data instanceof Money;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Serializer/Normalizer/MoneyNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file is part of the Symfony HeadsnetMoneyBundle.
*
* (c) Headstrong Internet Services Ltd 2021
* (c) Headstrong Internet Services Ltd 2022
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -38,7 +38,7 @@ public function normalize($object, $format = null, array $context = [])
/**
* {@inheritdoc}
*/
public function supportsNormalization($data, $format = null)
public function supportsNormalization($data, $format = null): bool
{
return $data instanceof Money;
}
Expand All @@ -59,7 +59,7 @@ public function denormalize($object, $class, $format = null, array $context = []
/**
* @inheritdoc
*/
public function supportsDenormalization($object, $type, $format = null)
public function supportsDenormalization($object, $type, $format = null): bool
{
if ($type !== Money::class) {
return false;
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/Constraints/MoneyGreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file is part of the Symfony HeadsnetMoneyBundle.
*
* (c) Headstrong Internet Services Ltd 2021
* (c) Headstrong Internet Services Ltd 2022
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -31,7 +31,7 @@ class MoneyGreaterThan extends Constraint
/**
* {@inheritdoc}
*/
public function getDefaultOption()
public function getDefaultOption(): ?string
{
return 'compareWith';
}
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/Constraints/MoneyGreaterThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* This file is part of the Symfony HeadsnetMoneyBundle.
*
* (c) Headstrong Internet Services Ltd 2021
* (c) Headstrong Internet Services Ltd 2022
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down Expand Up @@ -31,7 +31,7 @@ class MoneyGreaterThanOrEqual extends Constraint
/**
* {@inheritdoc}
*/
public function getDefaultOption()
public function getDefaultOption(): ?string
{
return 'compareWith';
}
Expand Down

0 comments on commit 59ff565

Please sign in to comment.