Skip to content

Commit

Permalink
Merge pull request #15 from frankverhoeven/php8
Browse files Browse the repository at this point in the history
Add PHP 8 Support
  • Loading branch information
mgrajcarek authored Jan 8, 2021
2 parents 394ea6b + f0b6998 commit 0c60ecb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4,175 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0

## Build matrix for lowest and highest possible targets
matrix:
Expand All @@ -27,6 +28,12 @@ matrix:
- vendor/bin/phpunit
- vendor/bin/phpbench run
env: dependencies=highest
- php: 8.0
script:
- vendor/bin/psalm
- vendor/bin/phpunit
- vendor/bin/phpbench run
env: dependencies=highest

## Update composer and run the appropriate composer command
before_script:
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"source": "https://github.com/mgrajcarek/uuid-shortener"
},
"require": {
"php": "^7.2",
"php": "^7.2 || ^8.0",
"brick/math": "^0.9.1"
},
"require-dev": {
"ext-gmp": "^7.2",
"ext-gmp": "^7.2 || ^8.0",
"phpunit/phpunit": "^8.0",
"vimeo/psalm": "^3.10",
"phpbench/phpbench": "^0.17.0"
"vimeo/psalm": "^4.3.1",
"phpbench/phpbench": "^1.0.0-alpha4"
},
"suggest": {
"ramsey/uuid": "A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID)",
Expand Down
Loading

0 comments on commit 0c60ecb

Please sign in to comment.