Skip to content

Commit

Permalink
Merge pull request #8 from aligent/5.0
Browse files Browse the repository at this point in the history
Oro version updated to 5.0
  • Loading branch information
Zigr1 authored Jan 17, 2023
2 parents 302d947 + c927fbc commit 6eaed6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OroCommerce Geo Detection Bundle

Facts
-----
- version: 4.2.0
- version: 5.0.0
- composer name: aligent/oro-geo-detection

Description
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/GeoIpCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6eaed6c

Please sign in to comment.