Skip to content

Commit e670c4a

Browse files
Merge branch '4.0' into 4.1
2 parents 9bd6ceb + 73f5ec3 commit e670c4a

File tree

159 files changed

+344
-566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+344
-566
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
/psalm.xml export-ignore
1616
/CHANGELOG.md export-ignore
1717
/README.md export-ignore
18-
/rector.php export-ignore

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
58+
reported by contacting the project team at [email protected]. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ are multiple supported versions at any given time.
99
## Reporting a Vulnerability
1010

1111
If you discover a security vulnerability within this package, please send an
12-
email to Graham Campbell at [email protected]. All security vulnerabilities
12+
email to Graham Campbell at [email protected]. All security vulnerabilities
1313
will be promptly addressed. Please do not disclose security-related issues
1414
publicly until a fix has been announced.

.github/workflows/static.yml

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 7.4
20-
tools: composer:v2
19+
php-version: '8.0'
20+
tools: composer:2.1
2121
coverage: none
2222

2323
- name: Install Dependencies
@@ -48,8 +48,8 @@ jobs:
4848
- name: Setup PHP
4949
uses: shivammathur/setup-php@v2
5050
with:
51-
php-version: 7.4
52-
tools: composer:v2
51+
php-version: '8.0'
52+
tools: composer:2.1
5353
coverage: none
5454

5555
- name: Install Dependencies
@@ -68,42 +68,3 @@ jobs:
6868

6969
- name: Execute Psalm
7070
run: vendor/bin/psalm.phar --no-progress --output-format=github
71-
72-
rector:
73-
name: Rector
74-
runs-on: ubuntu-20.04
75-
76-
steps:
77-
- name: Checkout code
78-
uses: actions/checkout@v2
79-
80-
- name: Setup PHP
81-
uses: shivammathur/setup-php@v2
82-
with:
83-
php-version: 7.4
84-
tools: composer:v2, cs2pr
85-
coverage: none
86-
87-
- name: Install Dependencies
88-
uses: nick-invision/retry@v1
89-
with:
90-
timeout_minutes: 5
91-
max_attempts: 5
92-
command: composer update --no-interaction --no-progress
93-
94-
- name: Install PHPUnit
95-
uses: nick-invision/retry@v1
96-
with:
97-
timeout_minutes: 5
98-
max_attempts: 5
99-
command: composer bin phpunit update --no-interaction --no-progress
100-
101-
- name: Install Rector
102-
uses: nick-invision/retry@v1
103-
with:
104-
timeout_minutes: 5
105-
max_attempts: 5
106-
command: composer bin rector update --no-interaction --no-progress
107-
108-
- name: Execute Rector
109-
run: vendor/bin/rector process --dry-run --output-format=checkstyle | cs2pr

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: shivammathur/setup-php@v2
2222
with:
2323
php-version: ${{ matrix.php }}
24-
tools: composer:v2
24+
tools: composer:2.1
2525
coverage: none
2626

2727
- name: Setup Problem Matchers

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ CHANGE LOG
77
* TODO
88

99

10+
## V4.0.2 (23/01/2022)
11+
12+
* Added missing `PipelinesConfig::variables()` method
13+
* Fixed some incorrect endpoint URIs
14+
15+
1016
## V4.0.1 (14/03/2021)
1117

1218
* Fixed some incorrect endpoint URIs

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2018-2021 Graham Campbell <[email protected]>
3+
Copyright (c) 2018-2022 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

Makefile

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
11
install:
2-
@docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:7.4-base update
3-
@docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:7.4-base bin all update
2+
@docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:8.0-base update
3+
@docker run -it -w /data -v ${PWD}:/data:delegated -v ~/.composer:/root/.composer:delegated --entrypoint composer --rm registry.gitlab.com/grahamcampbell/php:8.0-base bin all update
44

55
phpunit:
6-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit --rm registry.gitlab.com/grahamcampbell/php:7.4-cli
6+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpunit --rm registry.gitlab.com/grahamcampbell/php:8.0-cli
77

88
phpstan-analyze:
9-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:7.4-cli analyze
9+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:8.0-cli analyze
1010

1111
phpstan-baseline:
12-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:7.4-cli analyze --generate-baseline
12+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/phpstan --rm registry.gitlab.com/grahamcampbell/php:8.0-cli analyze --generate-baseline
1313

1414
psalm-analyze:
15-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli
15+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:8.0-cli
1616

1717
psalm-baseline:
18-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli --set-baseline=psalm-baseline.xml
18+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:8.0-cli --set-baseline=psalm-baseline.xml
1919

2020
psalm-show-info:
21-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:7.4-cli --show-info=true
21+
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/psalm.phar --rm registry.gitlab.com/grahamcampbell/php:8.0-cli --show-info=true
2222

23-
rector-dry-run:
24-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/rector --rm registry.gitlab.com/grahamcampbell/php:7.4-cli process --dry-run
25-
26-
rector-fix:
27-
@docker run -it -w /data -v ${PWD}:/data:delegated --entrypoint vendor/bin/rector --rm registry.gitlab.com/grahamcampbell/php:7.4-cli process
28-
29-
test: phpunit phpstan-analyze psalm-analyze rector-dry-run
23+
test: phpunit phpstan-analyze psalm-analyze
3024

3125
clean:
3226
@rm -rf .phpunit.result.cache composer.lock vendor vendor-bin/*/composer.lock vendor-bin/*/vendor

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ $ make test
143143

144144
## Security
145145

146-
If you discover a security vulnerability within this package, please send an email to Graham Campbell at [email protected]. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/BitbucketPHP/Client/security/policy).
146+
If you discover a security vulnerability within this package, please send an email to Graham Campbell at [email protected]. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/BitbucketPHP/Client/security/policy).
147147

148148

149149
## License

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"authors": [
77
{
88
"name": "Graham Campbell",
9-
"email": "[email protected]"
9+
"email": "[email protected]",
10+
"homepage": "https://github.com/GrahamCampbell"
1011
}
1112
],
1213
"require": {

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
message: "#^Property Bitbucket\\\\Api\\\\AbstractApi\\:\\:\\$perPage is never written, only read\\.$#"
5+
count: 1
6+
path: src/Api/AbstractApi.php
7+
38
-
49
message: "#^Variable method call on Bitbucket\\\\Api\\\\AbstractApi\\.$#"
510
count: 1

psalm-baseline.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.3.1@2feba22a005a18bf31d4c7b9bdb9252c73897476">
3-
<file src="src/HttpClient/Util/JsonArray.php">
4-
<MixedArgument occurrences="1">
5-
<code>\get_debug_type($data)</code>
6-
</MixedArgument>
7-
<UndefinedFunction occurrences="1">
8-
<code>\get_debug_type($data)</code>
9-
</UndefinedFunction>
10-
</file>
2+
<files psalm-version="4.x-dev@">
113
<file src="src/ResultPager.php">
124
<InaccessibleProperty occurrences="1">
135
<code>$clone-&gt;perPage</code>

rector.php

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

src/Api/AbstractApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
* This file is part of the Bitbucket API Client.
77
*
8-
* (c) Graham Campbell <[email protected]>
8+
* (c) Graham Campbell <[email protected]>
99
*
1010
* For the full copyright and license information, please view the LICENSE
1111
* file that was distributed with this source code.
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* @author Joseph Bielawski <[email protected]>
24-
* @author Graham Campbell <[email protected]>
24+
* @author Graham Campbell <[email protected]>
2525
*/
2626
abstract class AbstractApi
2727
{

0 commit comments

Comments
 (0)