Skip to content

Commit 963fe99

Browse files
authored
Merge pull request #7 from platformsh/php8
Increase version requirement to PHP 8.2
2 parents ea68d70 + 4b8e668 commit 963fe99

File tree

10 files changed

+1057
-986
lines changed

10 files changed

+1057
-986
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint-test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.2'
23+
24+
- name: Install dependencies
25+
run: composer install --no-progress --no-suggest --no-interaction
26+
27+
- name: Check coding standards
28+
run: ./vendor/bin/ecs check
29+
30+
- name: Run PHPUnit tests
31+
run: ./vendor/bin/phpunit

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/vendor
2+
/.phpunit.result.cache
3+
/.phpunit.cache

.travis.yml

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

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# platformsh/oauth2
22

33
This is a PHP OAuth2 client library for Platform.sh, which provides a
4-
middleware for Guzzle (version 6) that authenticates requests.
4+
middleware for Guzzle that authenticates requests.
55

66
This library should probably not be used directly. Use the [platformsh/client](https://github.com/platformsh/platformsh-client-php) library or the [Platform.sh CLI](https://github.com/platformsh/platformsh-cli) instead.
7-
8-
[![Build Status](https://travis-ci.org/platformsh/platformsh-oauth2-php.svg?branch=master)](https://travis-ci.org/platformsh/platformsh-oauth2-php)

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Platform.sh OAuth2 client",
44
"license": "MIT",
55
"require": {
6-
"php": ">=5.6.0",
6+
"php": ">=8.2",
77
"league/oauth2-client": "^2.2"
88
},
99
"autoload": {
@@ -18,7 +18,7 @@
1818
},
1919
"config": {
2020
"platform": {
21-
"php": "5.6"
21+
"php": "8.2"
2222
}
2323
},
2424
"authors": [
@@ -27,6 +27,7 @@
2727
}
2828
],
2929
"require-dev": {
30-
"phpunit/phpunit": "^5.7"
30+
"phpunit/phpunit": "^11",
31+
"symplify/easy-coding-standard": "^12.3"
3132
}
3233
}

0 commit comments

Comments
 (0)