diff --git a/README.md b/README.md index f34b1fa..87c755a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ OroCommerce Geo Detection Bundle Facts ----- -- version: 4.2.0 +- version: 5.0.0 - composer name: aligent/oro-geo-detection Description diff --git a/composer.json b/composer.json index dfa29a2..ba6552a 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,7 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "~7.4.14 || ~8.0.0", - "oro/commerce": "^4.2", + "oro/commerce": "5.0.*", "geoip2/geoip2": "~2.0", "guzzlehttp/guzzle": "^7.2" }, diff --git a/src/Cache/GeoIpCacheWarmer.php b/src/Cache/GeoIpCacheWarmer.php index 438ae56..7d67b38 100644 --- a/src/Cache/GeoIpCacheWarmer.php +++ b/src/Cache/GeoIpCacheWarmer.php @@ -78,9 +78,9 @@ public function isOptional() /** * Warms up the cache. * - * @param string $cacheDir The cache directory + * {@inheritdoc} */ - public function warmUp($cacheDir) + public function warmUp($cacheDir): void { //avoid downloading if db is up to date if ($this->isGeoDatabaseUpToDate()) { diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 7ad21be..4c104fd 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -36,8 +36,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root(AligentGeoDetectionExtension::ALIAS); + $treeBuilder = new TreeBuilder(AligentGeoDetectionExtension::ALIAS); + $rootNode = $treeBuilder->getRootNode(); SettingsBuilder::append( $rootNode,