Skip to content

Commit

Permalink
Release 4.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 3, 2023
1 parent 48b4118 commit db0fe6b
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 23 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand All @@ -37,15 +37,15 @@ $ 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).


## 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

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" beStrictAboutTestsThatDoNotTestAnything="true" beStrictAboutOutputDuringTests="true" bootstrap="vendor/autoload.php" colors="true" failOnRisky="true" failOnWarning="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd">
<testsuites>
<testsuite name="Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<coverage>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</source>
</phpunit>
9 changes: 3 additions & 6 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.x-dev@">
<files psalm-version="5.16.0@2897ba636551a8cb61601cc26f6ccfbba6c36591">
<file src="src/ResultPager.php">
<InaccessibleProperty occurrences="1">
<code>$clone-&gt;perPage</code>
<InaccessibleProperty>
<code><![CDATA[$clone->perPage]]></code>
</InaccessibleProperty>
<PossiblyInvalidFunctionCall occurrences="1">
<code>$closure($api)</code>
</PossiblyInvalidFunctionCall>
</file>
</files>
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/phpunit/composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/psalm/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": "^8.1",
"psalm/phar": "5.7.6"
"psalm/phar": "5.16.0"
},
"config": {
"preferred-install": "dist"
Expand Down

0 comments on commit db0fe6b

Please sign in to comment.