diff --git a/.travis.yml b/.travis.yml index e1833d8..7143146 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,8 +7,6 @@ cache: - $HOME/.composer/cache php: - - 7.2 - - 7.3 - 7.4 - nightly @@ -36,9 +34,9 @@ jobs: script: ./vendor/bin/security-checker security:check - stage: Code Style - php: 7.3 + php: 7.4 script: - composer show squizlabs/php_codesniffer - composer show doctrine/coding-standard - composer show slevomat/coding-standard - - ./vendor/bin/phpcs \ No newline at end of file + - ./vendor/bin/phpcs diff --git a/composer.json b/composer.json index d012e80..19d9e25 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": "^7.2", + "php": "^7.4", "ext-bcmath": "*", "doctrine/dbal": "^2.10", "moneyphp/money": "^3.3", diff --git a/src/BaseMoney.php b/src/BaseMoney.php index 1618aad..012df14 100644 --- a/src/BaseMoney.php +++ b/src/BaseMoney.php @@ -25,11 +25,8 @@ abstract class BaseMoney { private const HUMAN_READABLE_NAME = 'Money'; - /** @var string */ - protected $amount; - - /** @var string */ - protected $currency; + protected string $amount; + protected string $currency; final private function __construct(string $amount, string $currency) { diff --git a/src/Currency.php b/src/Currency.php index 01e861a..d2e592b 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -9,8 +9,7 @@ class Currency { - /** @var string */ - private $code; + private string $code; final private function __construct(string $code) { diff --git a/src/Money.php b/src/Money.php index 2ef170a..9f93134 100644 --- a/src/Money.php +++ b/src/Money.php @@ -11,8 +11,7 @@ class Money extends BaseMoney { - /** @var Currencies|null */ - private static $currencies = null; + private static ?Currencies $currencies = null; protected static function classSubunits() : int {