From db0fe6b96a61300dd3235a86ebf35427bbc2a5a9 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 3 Dec 2023 22:53:35 +0000 Subject: [PATCH] Release 4.6.0 --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- composer.json | 6 +++--- phpstan.neon.dist | 1 - phpunit.xml.dist | 6 +++--- psalm-baseline.xml | 9 +++------ src/Client.php | 2 +- vendor-bin/phpstan/composer.json | 8 ++++---- vendor-bin/phpunit/composer.json | 2 +- vendor-bin/psalm/composer.json | 2 +- 10 files changed, 24 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dec897..a1ed1b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ CHANGE LOG ========== +## V4.6 (03/12/2023) + +* Add support for `symfony/options-resolver:^7.0` + + ## V4.5 (08/10/2023) * Added PHP 8.3 support diff --git a/README.md b/README.md index 188036d..467b645 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ This version supports [PHP](https://php.net) 7.4-8.3. To get started, simply req ### Standard Installation ```bash -$ composer require "bitbucket/client:^4.5" \ +$ composer require "bitbucket/client:^4.6" \ "guzzlehttp/guzzle:^7.8" "http-interop/http-factory-guzzle:^1.2" ``` @@ -37,7 +37,7 @@ $ composer require "bitbucket/client:^4.5" \ #### Laravel: ```bash -$ composer require "graham-campbell/bitbucket:^10.2" +$ composer require "graham-campbell/bitbucket:^10.3" ``` We are decoupled from any HTTP messaging client by using [PSR-7](https://www.php-fig.org/psr/psr-7/), [PSR-17](https://www.php-fig.org/psr/psr-17/), [PSR-18](https://www.php-fig.org/psr/psr-18/), and [HTTPlug](https://httplug.io/). You can visit [HTTPlug for library users](https://docs.php-http.org/en/latest/httplug/users.html) to get more information about installing HTTPlug related packages. The framework integration [`graham-campbell/bitbucket`](https://github.com/GrahamCampbell/Laravel-Bitbucket) is by [Graham Campbell](https://github.com/GrahamCampbell). @@ -45,7 +45,7 @@ We are decoupled from any HTTP messaging client by using [PSR-7](https://www.php ## Usage -The main point of entry is the `Bitbucket\Client` class. Simply create a new instance of that, authenticate, and you're good to go! As of time of writing (Tuesday 29th June 2020), every endpoint (excluding issue export and import, and various deprecated endpoints) available on the Bitbucket API 2.0 is also available through this PHP client. We'd recommend looking through the [Bitbucket documentation](https://developer.atlassian.com/cloud/bitbucket/rest/intro/), and also the [source code](https://github.com/BitbucketPHP/Client/tree/4.5/src) to get a full picture of what is available to use. +The main point of entry is the `Bitbucket\Client` class. Simply create a new instance of that, authenticate, and you're good to go! As of time of writing (Tuesday 29th June 2020), every endpoint (excluding issue export and import, and various deprecated endpoints) available on the Bitbucket API 2.0 is also available through this PHP client. We'd recommend looking through the [Bitbucket documentation](https://developer.atlassian.com/cloud/bitbucket/rest/intro/), and also the [source code](https://github.com/BitbucketPHP/Client/tree/4.6/src) to get a full picture of what is available to use. ### Authentication diff --git a/composer.json b/composer.json index 5d58695..0c41971 100644 --- a/composer.json +++ b/composer.json @@ -13,9 +13,9 @@ "require": { "php": "^7.4.15 || ^8.0.2", "ext-json": "*", - "php-http/cache-plugin": "^1.8", - "php-http/client-common": "^2.7", - "php-http/discovery": "^1.19", + "php-http/cache-plugin": "^1.8.1", + "php-http/client-common": "^2.7.1", + "php-http/discovery": "^1.19.2", "php-http/httplug": "^2.4", "php-http/multipart-stream-builder": "^1.3", "psr/cache": "^1.0 || ^2.0 || ^3.0", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4a526b0..b21e733 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -7,7 +7,6 @@ includes: rules: - Ergebnis\PHPStan\Rules\Closures\NoNullableReturnTypeDeclarationRule - Ergebnis\PHPStan\Rules\Expressions\NoCompactRule - - Ergebnis\PHPStan\Rules\Expressions\NoEmptyRule - Ergebnis\PHPStan\Rules\Expressions\NoEvalRule - Ergebnis\PHPStan\Rules\Files\DeclareStrictTypesRule - Ergebnis\PHPStan\Rules\Methods\PrivateInFinalClassRule diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 4ac266f..b689bdf 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,13 @@ - + ./tests - + ./src - + diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 31ddd8f..0d34aee 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,11 +1,8 @@ - + - - $clone->perPage + + perPage]]> - - $closure($api) - diff --git a/src/Client.php b/src/Client.php index c538794..07ae69d 100644 --- a/src/Client.php +++ b/src/Client.php @@ -76,7 +76,7 @@ class Client * * @var string */ - private const USER_AGENT = 'bitbucket-php-api-client/4.5'; + private const USER_AGENT = 'bitbucket-php-api-client/4.6'; /** * The HTTP client builder. diff --git a/vendor-bin/phpstan/composer.json b/vendor-bin/phpstan/composer.json index 88a5f74..38f61a0 100644 --- a/vendor-bin/phpstan/composer.json +++ b/vendor-bin/phpstan/composer.json @@ -1,11 +1,11 @@ { "require": { "php": "^8.1", - "phpstan/phpstan": "1.10.3", - "phpstan/phpstan-deprecation-rules": "1.1.2", - "phpstan/phpstan-strict-rules": "1.5.0", + "phpstan/phpstan": "1.10.47", + "phpstan/phpstan-deprecation-rules": "1.1.4", + "phpstan/phpstan-strict-rules": "1.5.2", "thecodingmachine/phpstan-strict-rules": "1.0.0", - "ergebnis/phpstan-rules": "1.0.0" + "ergebnis/phpstan-rules": "2.1.0" }, "config": { "preferred-install": "dist" diff --git a/vendor-bin/phpunit/composer.json b/vendor-bin/phpunit/composer.json index 59819b4..ce2646e 100644 --- a/vendor-bin/phpunit/composer.json +++ b/vendor-bin/phpunit/composer.json @@ -1,7 +1,7 @@ { "require": { "php": "^7.4.15 || ^8.0.2", - "phpunit/phpunit": "^9.6.3 || ^10.0.12" + "phpunit/phpunit": "^9.6.15 || ^10.5.1" }, "config": { "preferred-install": "dist" diff --git a/vendor-bin/psalm/composer.json b/vendor-bin/psalm/composer.json index 5060e69..5a8af7c 100644 --- a/vendor-bin/psalm/composer.json +++ b/vendor-bin/psalm/composer.json @@ -1,7 +1,7 @@ { "require": { "php": "^8.1", - "psalm/phar": "5.7.6" + "psalm/phar": "5.16.0" }, "config": { "preferred-install": "dist"