Skip to content

Commit 0709524

Browse files
authored
Merge pull request #150 from jessarcher/master
Laravel 6.0 support
2 parents b205c58 + 53f4307 commit 0709524

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
language: php
22

33
php:
4-
- 7.0
54
- 7.1
5+
- 7.2
6+
- 7.3
67

78
before_script:
89
- curl -s http://getcomposer.org/installer | php
910
- php composer.phar install --dev
1011

11-
script: phpunit
12+
script: php ./vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^7.0",
23-
"illuminate/support": "~5.0",
24-
"illuminate/console": "~5.0"
22+
"php": "^7.1",
23+
"illuminate/support": "~5.5|^6.0",
24+
"illuminate/console": "~5.5|^6.0",
25+
"vlucas/phpdotenv": "^3.5"
2526
},
2627
"suggest": {
2728
"geoip2/geoip2": "Required to use the MaxMind database or web service with GeoIP (~2.1).",
2829
"monolog/monolog": "Allows for storing location not found errors to the log"
2930
},
3031
"require-dev": {
31-
"phpunit/phpunit": "^4.8",
32+
"phpunit/phpunit": "^7.0",
3233
"mockery/mockery": "^0.9.4",
3334
"geoip2/geoip2": "~2.1"
3435
},

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
verbose="true"
1312
>
1413
<testsuites>

src/GeoIPServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Torann\GeoIP;
44

5+
use Illuminate\Support\Str;
56
use Illuminate\Support\ServiceProvider;
67

78
class GeoIPServiceProvider extends ServiceProvider
@@ -74,6 +75,6 @@ public function registerGeoIpCommands()
7475
*/
7576
protected function isLumen()
7677
{
77-
return str_contains($this->app->version(), 'Lumen') === true;
78+
return Str::contains($this->app->version(), 'Lumen') === true;
7879
}
7980
}

tests/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class TestCase extends PHPUnitTestCase
99
{
1010
public static $functions;
1111

12-
public function setUp()
12+
public function setUp(): void
1313
{
1414
self::$functions = Mockery::mock();
1515
}
1616

17-
public function tearDown()
17+
public function tearDown(): void
1818
{
1919
Mockery::close();
2020
}

0 commit comments

Comments
 (0)