Skip to content

Commit 9e92f50

Browse files
authored
Add Laravel 8 support (#153)
* Add Laravel 8 support * Revert back to assertFileNotExists, will be deprecated in PHPUnit 10 * Update .travis orchestra/testbench
1 parent 76026e0 commit 9e92f50

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.travis.yml

+9
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ matrix:
190190
env: LARAVEL='7.*' TESTBENCH='5.*' PHPUNIT='>=6' COMPOSER_FLAGS='--prefer-lowest'
191191
- php: 7.4
192192
env: LARAVEL='7.*' TESTBENCH='5.*' PHPUNIT='>=6' COMPOSER_FLAGS='--prefer-stable'
193+
194+
- php: 7.3
195+
env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-lowest'
196+
- php: 7.3
197+
env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-stable'
198+
- php: 7.4
199+
env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-lowest'
200+
- php: 7.4
201+
env: LARAVEL='8.*' TESTBENCH='6.*' PHPUNIT='>=9' COMPOSER_FLAGS='--prefer-stable'
193202
fast_finish: true
194203

195204
before_install:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This package convert all your localization messages from your Laravel app to Jav
1010

1111
## Features
1212

13-
- Support Laravel 4.2, 5.0, 5.1, 5.2, 5.3, 5.4 and 5.5.
13+
- Support Laravel 4.2, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 6.x, 7.x and 8.x!
1414
- Includes [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class).
1515
- Allow to specify desired lang files to be converted to JS.
1616
- Lang.js API is based on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class. No need to learn a whole API.

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@
5353
},
5454
"require": {
5555
"php": "^5.4 || ^7.0",
56-
"illuminate/config": "^4.2 || ^5.0 || ^6.0 || ^7.0",
57-
"illuminate/console": "^4.2 || ^5.0 || ^6.0 || ^7.0",
58-
"illuminate/filesystem": "^4.2 || ^5.0 || ^6.0 || ^7.0",
56+
"illuminate/config": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
57+
"illuminate/console": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
58+
"illuminate/filesystem": "^4.2 || ^5.0 || ^6.0 || ^7.0 || ^8.0",
5959
"tedivm/jshrink": "~1.0"
6060
},
6161
"require-dev": {
62-
"orchestra/testbench": "^2.2 || ^3.0 || ^4.0",
62+
"orchestra/testbench": "^2.2 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
6363
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
6464
},
6565
"autoload": {

tests/specs/LangJsServiceProviderTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ public function testShouldRegisterProvider()
2323
{
2424
// TODO: Add some assertions. (however, this already test if this
2525
// package can be provided with the method: getPackageProviders).
26+
$this->assertTrue(true); // Add empty assert to remove warning
2627
}
2728
}

0 commit comments

Comments
 (0)