Skip to content

Commit e57e5cd

Browse files
committed
Add missing monolog/monolog dependency
1 parent dd95251 commit e57e5cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"php": "^8.1",
1616
"illuminate/cache": "^10.0 || ^11.0",
1717
"illuminate/console": "^10.0 || ^11.0",
18-
"illuminate/support": "^10.0 || ^11.0"
18+
"illuminate/support": "^10.0 || ^11.0",
19+
"monolog/monolog": "^3.0"
1920
},
2021
"require-dev": {
2122
"friendsofphp/php-cs-fixer": "^3.50",

src/GeoIP.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace InteractionDesignFoundation\GeoIP;
66

7-
use Exception;
87
use Monolog\Logger;
98
use Illuminate\Support\Arr;
109
use Illuminate\Cache\CacheManager;
@@ -195,7 +194,7 @@ public function getCurrency($iso)
195194
* Get service instance.
196195
*
197196
* @return \InteractionDesignFoundation\GeoIP\Contracts\ServiceInterface
198-
* @throws Exception
197+
* @throws \Exception
199198
*/
200199
public function getService()
201200
{
@@ -208,7 +207,7 @@ public function getService()
208207

209208
// Sanity check
210209
if ($class === null) {
211-
throw new Exception('The GeoIP service is not valid.');
210+
throw new \Exception('The GeoIP service is not valid.');
212211
}
213212

214213
// Create service instance

0 commit comments

Comments
 (0)