Skip to content

Commit e987481

Browse files
Add PHP 8.0 support (#44)
* Added PHP 8.0 support * Updated README.md to remove code style test references
1 parent c203b31 commit e987481

File tree

3 files changed

+5
-26
lines changed

3 files changed

+5
-26
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ language: php
1111
php:
1212
- "7.3"
1313
- "7.4"
14+
- "8.0"
1415

1516
# Cache the vendor directory for quicker builds.
1617
cache:
@@ -24,5 +25,4 @@ install:
2425

2526
# Run the code style and unit tests.
2627
script:
27-
- composer test:style
28-
- composer test:unit
28+
- composer test

README.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -303,24 +303,10 @@ class CreatePostsTable extends Migration
303303

304304
## Running the tests
305305

306-
To run the test suite you can use the following commands:
306+
To run the test suite you can use the following command:
307307

308308
```bash
309-
# To run both style and unit tests.
310309
composer test
311-
312-
# To run only style tests.
313-
composer test:style
314-
315-
# To run only unit tests.
316-
composer test:unit
317-
```
318-
319-
If you receive any errors from the style tests, you can automatically fix most,
320-
if not all of the issues with the following command:
321-
322-
```bash
323-
composer fix:style
324310
```
325311

326312
## Contributing

composer.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,19 @@
2727
}
2828
},
2929
"require": {
30-
"php": "^7.3",
30+
"php": "^7.3 || ^8.0",
3131
"laravel/framework": "^8.0"
3232
},
3333
"require-dev": {
3434
"ext-pdo": "*",
35-
"friendsofphp/php-cs-fixer": "^2.15",
3635
"orchestra/testbench": "^6.0",
3736
"phpunit/phpunit": "^8.4"
3837
},
3938
"config": {
4039
"sort-packages": true
4140
},
4241
"scripts": {
43-
"test": [
44-
"@test:style",
45-
"@test:unit"
46-
],
47-
"test:style": "php-cs-fixer fix --config=.php_cs --allow-risky=yes --dry-run --diff --verbose",
48-
"test:unit": "phpunit",
49-
"fix:style": "php-cs-fixer fix --config=.php_cs --allow-risky=yes --diff --verbose"
42+
"test": "phpunit"
5043
},
5144
"extra": {
5245
"laravel": {

0 commit comments

Comments
 (0)