diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 46dfdfe..a32272e 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -13,7 +13,6 @@ jobs: fail-fast: false matrix: php: - - '7.4' - '8.0' - '8.1' - '8.2' diff --git a/composer.json b/composer.json index cf46f79..9c7aa07 100644 --- a/composer.json +++ b/composer.json @@ -38,10 +38,9 @@ "docs": "https://github.com/DataValues/Geo/#usage" }, "require": { - "php": ">=7.4", + "php": ">=8.0", "data-values/data-values": "^3.0|^2.0|^1.0|~0.1", - "data-values/interfaces": "^1.1.0", - "symfony/polyfill-php80": "^1.18.1" + "data-values/interfaces": "^1.1.0" }, "require-dev": { "phpunit/phpunit": "^9.4.1", diff --git a/src/Formatters/LatLongFormatter.php b/src/Formatters/LatLongFormatter.php index 77a676c..6243ff7 100644 --- a/src/Formatters/LatLongFormatter.php +++ b/src/Formatters/LatLongFormatter.php @@ -368,11 +368,7 @@ private function formatNumber( float $number, int $digits = 0 ): string { return sprintf( '%.' . ( $digits > 0 ? $digits : 0 ) . 'F', $number ); } - /** - * @param string $option - * @param mixed $default - */ - private function defaultOption( string $option, $default ): void { + private function defaultOption( string $option, mixed $default ): void { if ( !$this->options->hasOption( $option ) ) { $this->options->setOption( $option, $default ); } diff --git a/src/Parsers/LatLongParserBase.php b/src/Parsers/LatLongParserBase.php index d9430a8..f8df6a0 100644 --- a/src/Parsers/LatLongParserBase.php +++ b/src/Parsers/LatLongParserBase.php @@ -48,11 +48,7 @@ public function __construct( ?ParserOptions $options = null ) { $this->defaultOption( self::OPT_SEPARATOR_SYMBOL, ',' ); } - /** - * @param string $option - * @param mixed $default - */ - private function defaultOption( string $option, $default ): void { + private function defaultOption( string $option, mixed $default ): void { if ( !$this->options->hasOption( $option ) ) { $this->options->setOption( $option, $default ); }