Skip to content

Commit 33e0764

Browse files
authored
Merge pull request #11 from veewee/php80
Add support for PHP80
2 parents 10bcce6 + 5bbf028 commit 33e0764

8 files changed

Lines changed: 136 additions & 34 deletions

File tree

.github/ISSUE_TEMPLATE/Bug.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: 🐞 Bug Report
3+
about: Something is broken? 🔨
4+
---
5+
6+
### Bug Report
7+
8+
<!-- Fill in the relevant information below to help triage your issue. -->
9+
10+
| Q | A
11+
|------------ | ------
12+
| BC Break | yes/no
13+
| Version | x.y.z
14+
15+
#### Summary
16+
17+
<!-- Provide a summary describing the problem you are experiencing. -->
18+
19+
#### Current behaviour
20+
21+
<!-- What is the current (buggy) behaviour? -->
22+
23+
#### How to reproduce
24+
25+
<!--
26+
Provide steps to reproduce the bug.
27+
If possible, also add a code snippet with relevant configuration, driver/platform information, SQL queries, etc.
28+
Adding a failing Unit or Functional Test would help us a lot - you can submit one in a Pull Request separately, referencing this bug report.
29+
-->
30+
31+
#### Expected behaviour
32+
33+
<!-- What was the expected (correct) behaviour? -->
34+
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: 🎉 Feature Request
3+
about: You have a neat idea that should be implemented? 🎩
4+
---
5+
6+
### Feature Request
7+
8+
<!-- Fill in the relevant information below to help triage your issue. -->
9+
10+
| Q | A
11+
|------------ | ------
12+
| New Feature | yes
13+
| RFC | yes/no
14+
| BC Break | yes/no
15+
16+
#### Summary
17+
18+
<!-- Provide a summary of the feature you would like to see implemented. -->
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: ❓ Support Question
3+
about: Have a problem that you can't figure out? 🤔
4+
---
5+
6+
<!-- Fill in the relevant information below to help triage your issue. -->
7+
8+
| Q | A
9+
|------------ | -----
10+
| Version | x.y.z
11+
12+
13+
### Support Question
14+
15+
<!-- Describe the issue you are facing here. -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- Fill in the relevant information below to help triage your pull request. -->
2+
3+
| Q | A
4+
|------------- | -----------
5+
| Type | bug/feature/improvement
6+
| BC Break | yes/no
7+
| Fixed issues | <!-- use #NUM format to reference an issue -->
8+
9+
#### Summary
10+
11+
<!-- Provide a summary of your change. -->

.github/workflows/grumphp.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: GrumPHP
2+
3+
on: [push, pull_request]
4+
jobs:
5+
run:
6+
runs-on: ${{ matrix.operating-system }}
7+
strategy:
8+
matrix:
9+
operating-system: [ubuntu-latest]
10+
php-versions: ['7.3', '7.4', '8.0']
11+
composer-options: ['', '--prefer-lowest']
12+
fail-fast: false
13+
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-options }}
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Install PHP
18+
uses: shivammathur/setup-php@master
19+
with:
20+
php-version: ${{ matrix.php-versions }}
21+
tools: 'composer:v2'
22+
extensions: pcov, mbstring, posix
23+
- name: Check Versions
24+
run: |
25+
php -v
26+
php -m
27+
composer --version
28+
- name: Get composer cache directory
29+
id: composercache
30+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
31+
- name: Cache dependencies
32+
uses: actions/cache@v2
33+
with:
34+
path: ${{ steps.composercache.outputs.dir }}
35+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
36+
restore-keys: ${{ runner.os }}-composer-
37+
- name: Install dependencies <PHP8
38+
if: matrix.php-versions != '8.0'
39+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
40+
#
41+
# Currently php-cs-fixer is nog PHP 8 compatible yet!
42+
#
43+
- name: Install dependencies PHP8
44+
if: matrix.php-versions == '8.0'
45+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }} --ignore-platform-reqs
46+
- name: Set git variables
47+
run: |
48+
git config --global user.email "you@example.com"
49+
git config --global user.name "Your Name"
50+
- name: Run the tests
51+
run: php vendor/bin/grumphp run --no-interaction
52+
env:
53+
PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.php-versions == '8.0'}}

.travis.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"description": "RFC7807 Problem details implementation",
44
"type": "library",
55
"require-dev": {
6-
"friendsofphp/php-cs-fixer": "^2.12",
7-
"phpro/grumphp": "^0.17",
8-
"phpspec/phpspec": "^6.0",
6+
"friendsofphp/php-cs-fixer": "^2.16.7",
7+
"phpro/grumphp-shim": "^1.2",
8+
"phpspec/phpspec": "^6.3",
99
"symfony/validator": "^4.4",
1010
"sebastian/comparator": "^1.2.4"
1111
},
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.2"
20+
"php": "^7.3 || ^8.0"
2121
},
2222
"config": {
2323
"sort-packages": true

grumphp.yml.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
parameters:
2-
git_dir: .
3-
bin_dir: vendor/bin
1+
grumphp:
42
tasks:
53
phpcsfixer2:
64
config: ".php_cs.dist"

0 commit comments

Comments
 (0)