Skip to content

Commit 533f7a7

Browse files
authored
Merge pull request #1 from aldump/php8-support
Php8 support
2 parents 314b6f7 + 7928869 commit 533f7a7

24 files changed

+973
-2396
lines changed

.coveralls.yml

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

.github/workflows/tests.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: PHPUnit tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
tests74:
9+
runs-on: ubuntu-latest
10+
name: Tests on PHP 7.4
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: 7.4
19+
tools: composer:v2
20+
coverage: pcov
21+
22+
- name: Install dependencies
23+
run: composer install --no-interaction --prefer-dist
24+
25+
- name: Run tests
26+
run: php vendor/bin/phpunit
27+
28+
tests80:
29+
runs-on: ubuntu-latest
30+
name: Tests on PHP 8.0
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v3
34+
35+
- name: Setup PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: 8.0
39+
tools: composer:v2
40+
coverage: pcov
41+
42+
- name: Install dependencies
43+
run: composer install --no-interaction --prefer-dist
44+
45+
- name: Run tests
46+
run: php vendor/bin/phpunit
47+
48+
49+
tests81:
50+
runs-on: ubuntu-latest
51+
name: Tests on PHP 8.1
52+
steps:
53+
- name: Checkout code
54+
uses: actions/checkout@v3
55+
56+
- name: Setup PHP
57+
uses: shivammathur/setup-php@v2
58+
with:
59+
php-version: 8.1
60+
tools: composer:v2
61+
coverage: pcov
62+
63+
- name: Install dependencies
64+
run: composer install --no-interaction --prefer-dist
65+
66+
- name: Run tests
67+
run: php vendor/bin/phpunit

.travis.yml

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

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [2.0.0] - 2022-11-21
8+
### Added
9+
- Php 8 support
10+
11+
### Changed
12+
- Minimum php version now is 7.4
13+
14+
### Fixed
15+
- Fix tests
16+
17+
## [1.0.1] - 2020-09-28
18+
19+
## [1.0.0] - 2020-09-27

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ This library provides the base exceptions for the generated clients made by [api
44

55
[![Latest Stable Version](https://poser.pugx.org/docler-labs/api-client-exception/v/stable)](https://packagist.org/packages/docler-labs/api-client-exception)
66
[![License](https://poser.pugx.org/docler-labs/api-client-exception/license)](https://packagist.org/packages/docler-labs/api-client-exception)
7-
[![Build Status](https://travis-ci.org/DoclerLabs/api-client-exception.svg?branch=master)](https://travis-ci.org/DoclerLabs/api-client-exception)
8-
[![Coverage Status](https://coveralls.io/repos/github/DoclerLabs/api-client-exception/badge.svg?branch=master)](https://coveralls.io/github/DoclerLabs/api-client-exception?branch=master)
97

108
## Development
119

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docler-labs/api-client-exception",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "SDK Generator - API Client Exception",
55
"type": "library",
66
"license": "MIT",
@@ -15,14 +15,10 @@
1515
"sort-packages": true
1616
},
1717
"require": {
18-
"php": "^7.0",
18+
"php": "^7.4 || ^8.0",
1919
"psr/http-client": "^1.0",
2020
"psr/http-message": "^1.0"
2121
},
22-
"require-dev": {
23-
"php-coveralls/php-coveralls": "^2.2",
24-
"phpunit/phpunit": "^6.5"
25-
},
2622
"autoload": {
2723
"psr-4": {
2824
"DoclerLabs\\ApiClientException\\": "src/"
@@ -32,5 +28,8 @@
3228
"psr-4": {
3329
"DoclerLabs\\ApiClientException\\Test\\Unit\\": "test/suite/unit/"
3430
}
31+
},
32+
"require-dev": {
33+
"phpunit/phpunit": "^9.5"
3534
}
3635
}

0 commit comments

Comments
 (0)