Skip to content

Commit 373d87d

Browse files
Working on next version
1 parent 00d3c75 commit 373d87d

File tree

6 files changed

+25
-19
lines changed

6 files changed

+25
-19
lines changed

.github/workflows/static.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
phpstan:
99
name: PHPStan
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout code
@@ -17,8 +17,10 @@ jobs:
1717
uses: shivammathur/setup-php@v2
1818
with:
1919
php-version: '8.0'
20-
tools: composer:2.1
20+
tools: composer:v2
2121
coverage: none
22+
env:
23+
update: true
2224

2325
- name: Install Dependencies
2426
uses: nick-invision/retry@v1
@@ -39,7 +41,7 @@ jobs:
3941

4042
psalm:
4143
name: Psalm
42-
runs-on: ubuntu-20.04
44+
runs-on: ubuntu-22.04
4345

4446
steps:
4547
- name: Checkout code
@@ -49,8 +51,10 @@ jobs:
4951
uses: shivammathur/setup-php@v2
5052
with:
5153
php-version: '8.0'
52-
tools: composer:2.1
54+
tools: composer:v2
5355
coverage: none
56+
env:
57+
update: true
5458

5559
- name: Install Dependencies
5660
uses: nick-invision/retry@v1

.github/workflows/tests.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
jobs:
88
tests:
99
name: PHP ${{ matrix.php }}
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111

1212
strategy:
1313
matrix:
14-
php: ['7.4', '8.0', '8.1']
14+
php: ['7.4', '8.0', '8.1', '8.2']
1515

1616
steps:
1717
- name: Checkout Code
@@ -21,8 +21,10 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php }}
24-
tools: composer:2.1
24+
tools: composer:v2
2525
coverage: none
26+
env:
27+
update: true
2628

2729
- name: Setup Problem Matchers
2830
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018-2022 Graham Campbell <[email protected]>
3+
Copyright (c) 2018-2023 Graham Campbell <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Check out the [change log](CHANGELOG.md), [releases](https://github.com/Bitbucke
2323

2424
## Installation
2525

26-
This version supports [PHP](https://php.net) 7.4-8.1. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
26+
This version supports [PHP](https://php.net) 7.4-8.2. To get started, simply require the project using [Composer](https://getcomposer.org). You will also need to install packages that "provide" [`psr/http-client-implementation`](https://packagist.org/providers/psr/http-client-implementation) and [`psr/http-factory-implementation`](https://packagist.org/providers/psr/http-factory-implementation).
2727

2828
### Standard Installation
2929

3030
```bash
31-
$ composer require "bitbucket/client:^4.2" "guzzlehttp/guzzle:^7.4" "http-interop/http-factory-guzzle:^1.2"
31+
$ composer require "bitbucket/client:^4.3" "guzzlehttp/guzzle:^7.5" "http-interop/http-factory-guzzle:^1.2"
3232
```
3333

3434
### Framework Integration

composer.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
"php": "^7.4.15 || ^8.0.2",
1515
"ext-json": "*",
1616
"php-http/cache-plugin": "^1.7.5",
17-
"php-http/client-common": "^2.5",
18-
"php-http/discovery": "^1.14",
19-
"php-http/httplug": "^2.2",
17+
"php-http/client-common": "^2.6",
18+
"php-http/discovery": "^1.15",
19+
"php-http/httplug": "^2.3",
2020
"php-http/multipart-stream-builder": "^1.2",
2121
"psr/cache": "^1.0 || ^2.0 || ^3.0",
2222
"psr/http-client-implementation": "^1.0",
2323
"psr/http-factory-implementation": "^1.0",
2424
"psr/http-message": "^1.0",
25-
"symfony/polyfill-php80": "^1.17"
25+
"symfony/polyfill-php80": "^1.26"
2626
},
2727
"require-dev": {
28-
"bamarni/composer-bin-plugin": "^1.4.1",
29-
"guzzlehttp/guzzle": "^7.4",
30-
"http-interop/http-factory-guzzle": "^1.0",
28+
"bamarni/composer-bin-plugin": "^1.8.2",
29+
"guzzlehttp/guzzle": "^7.5",
30+
"http-interop/http-factory-guzzle": "^1.2",
3131
"php-http/mock-client": "^1.5"
3232
},
3333
"autoload": {

tests/ResponseMediatorTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testGetContent(): void
3232
Utils::streamFor('{"foo": "bar"}')
3333
);
3434

35-
$this->assertSame(['foo' => 'bar'], ResponseMediator::getContent($response));
35+
self::assertSame(['foo' => 'bar'], ResponseMediator::getContent($response));
3636
}
3737

3838
public function testGetContentNotJson(): void
@@ -74,6 +74,6 @@ public function testGetErrrorMessageInvalidJson(): void
7474
Utils::streamFor($body)
7575
);
7676

77-
$this->assertNull(ResponseMediator::getErrorMessage($response));
77+
self::assertNull(ResponseMediator::getErrorMessage($response));
7878
}
7979
}

0 commit comments

Comments
 (0)