From c89e773c8e37b332b0e29421267bb4a41bc43ead Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 3 Feb 2020 18:40:47 +0100 Subject: [PATCH] fix type bug --- Localization/Defaults/Currency.php | 16 ++++++++-------- Localization/Defaults/CurrencyMapper.php | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Localization/Defaults/Currency.php b/Localization/Defaults/Currency.php index adef8dff4..cab40f87a 100644 --- a/Localization/Defaults/Currency.php +++ b/Localization/Defaults/Currency.php @@ -59,10 +59,10 @@ final class Currency /** * Currency number. * - * @var int + * @var string * @since 1.0.0 */ - private int $number = 0; + private string $number = 0; /** * Currency subunits. @@ -75,10 +75,10 @@ final class Currency /** * Currency decimals. * - * @var int + * @var string * @since 1.0.0 */ - private int $decimals = 0; + private string $decimals = 0; /** * Currency countries. @@ -127,11 +127,11 @@ final class Currency /** * Get currency number * - * @return int + * @return string * * @since 1.0.0 */ - public function getNumber() : int + public function getNumber() : string { return $this->number; } @@ -151,11 +151,11 @@ final class Currency /** * Get currency decimals * - * @return int + * @return string * * @since 1.0.0 */ - public function getDecimals() : int + public function getDecimals() : string { return $this->decimals; } diff --git a/Localization/Defaults/CurrencyMapper.php b/Localization/Defaults/CurrencyMapper.php index 9d1212708..8e1e1335c 100644 --- a/Localization/Defaults/CurrencyMapper.php +++ b/Localization/Defaults/CurrencyMapper.php @@ -36,10 +36,10 @@ class CurrencyMapper extends DataMapperAbstract 'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'], 'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'], 'currency_char' => ['name' => 'currency_char', 'type' => 'string', 'internal' => 'code'], - 'currency_number' => ['name' => 'currency_number', 'type' => 'int', 'internal' => 'number'], + 'currency_number' => ['name' => 'currency_number', 'type' => 'string', 'internal' => 'number'], 'currency_symbol' => ['name' => 'currency_symbol', 'type' => 'string', 'internal' => 'symbol'], 'currency_subunits' => ['name' => 'currency_subunits', 'type' => 'int', 'internal' => 'subunits'], - 'currency_decimals' => ['name' => 'currency_decimals', 'type' => 'int', 'internal' => 'decimals'], + 'currency_decimals' => ['name' => 'currency_decimals', 'type' => 'string', 'internal' => 'decimals'], 'currency_countries' => ['name' => 'currency_countries', 'type' => 'string', 'internal' => 'countries'], ];