Skip to content

Commit 0fc7a2f

Browse files
committed
php 8 is stable now, and use semantic branch name
1 parent 31d8ee4 commit 0fc7a2f

File tree

8 files changed

+19
-24
lines changed

8 files changed

+19
-24
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Checks
33
on:
44
push:
55
branches:
6-
- master
6+
- "*.x"
77
pull_request:
88

99
jobs:

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- "*.x"
77
pull_request:
88

99
jobs:
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
15+
php: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
1616

1717
steps:
1818
- name: Checkout code
@@ -25,15 +25,10 @@ jobs:
2525
tools: composer:v2
2626
coverage: none
2727

28-
- name: Install PHP 7 dependencies
29-
run: composer update --prefer-dist --no-interaction --no-progress
30-
if: "startsWith(matrix.php, '7.')"
31-
32-
- name: Install PHP 8 dependencies
28+
- name: Install dependencies
3329
run: |
34-
composer require "phpdocumentor/reflection-docblock:^5.2@dev" --no-interaction --no-update
35-
composer update --prefer-dist --prefer-stable --no-interaction --no-progress --ignore-platform-req=php
36-
if: "startsWith(matrix.php, '8.')"
30+
composer update --prefer-dist --no-interaction --no-progress
31+
vendor/bin/simple-phpunit install
3732
3833
- name: Execute tests
3934
run: composer test
@@ -61,6 +56,7 @@ jobs:
6156
wget https://github.com/puli/cli/releases/download/1.0.0-beta9/puli.phar && chmod +x puli.phar
6257
composer require "sebastian/comparator:^3.0.2" "puli/composer-plugin:1.0.0-beta9" --no-interaction --no-update
6358
composer update --prefer-dist --prefer-stable --prefer-lowest --no-interaction --no-progress
59+
vendor/bin/simple-phpunit install
6460
6561
- name: Execute tests
6662
run: composer test

.github/workflows/installation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Installation
22
on:
33
push:
44
branches:
5-
- master
5+
- "*.x"
66
pull_request:
77

88
jobs:

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Static analysis
33
on:
44
push:
55
branches:
6-
- master
6+
- "*.x"
77
pull_request:
88

99
jobs:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/puli.json
88
/vendor/
99
.php-cs-fixer.cache
10+
.phpunit.result.cache

composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "php-http/discovery",
33
"description": "Finds installed HTTPlug implementations and PSR-7 message factories",
44
"license": "MIT",
5-
"keywords": ["http", "discovery", "client", "adapter", "message", "factory", "psr7"],
5+
"keywords": ["http", "discovery", "client", "adapter", "message", "factory", "psr7", "psr17"],
66
"homepage": "http://php-http.org",
77
"authors": [
88
{
@@ -17,7 +17,8 @@
1717
"graham-campbell/phpspec-skip-example-extension": "^5.0",
1818
"php-http/httplug": "^1.0 || ^2.0",
1919
"php-http/message-factory": "^1.0",
20-
"phpspec/phpspec": "^5.1 || ^6.1"
20+
"phpspec/phpspec": "^5.1 || ^6.1 || ^7.3",
21+
"symfony/phpunit-bridge": "^6.2"
2122
},
2223
"suggest": {
2324
"php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories"
@@ -33,14 +34,12 @@
3334
}
3435
},
3536
"scripts": {
36-
"test": "vendor/bin/phpspec run",
37+
"test": [
38+
"vendor/bin/phpspec run",
39+
"vendor/bin/simple-phpunit --group NothingInstalled"
40+
],
3741
"test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml"
3842
},
39-
"extra": {
40-
"branch-alias": {
41-
"dev-master": "1.9-dev"
42-
}
43-
},
4443
"conflict": {
4544
"nyholm/psr7": "<1.0"
4645
},

src/Exception.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
namespace Http\Discovery;
44

5-
use Throwable;
6-
75
/**
86
* An interface implemented by all discovery related exceptions.
97
*
108
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
119
*/
12-
interface Exception extends Throwable
10+
interface Exception extends \Throwable
1311
{
1412
}

src/Strategy/PuliBetaStrategy.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Find candidates using Puli.
1212
*
1313
* @internal
14+
*
1415
* @final
1516
*
1617
* @author David de Boer <david@ddeboer.nl>

0 commit comments

Comments
 (0)