Skip to content

Commit 26b74a4

Browse files
Minor fixes
1 parent 57989d6 commit 26b74a4

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.github/workflows/static.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Static
22

33
on:
44
push:
@@ -16,8 +16,8 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818
- name: Run Composer
19-
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:$7.4-base update -n -o
19+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:7.4-base update -n -o
2020
- name: Install PHPStan
21-
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:$7.4-base bin phpstan update -n -o
22-
- name: Run PHPUnit
23-
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint vendor/bin/phpstan registry.gitlab.com/grahamcampbell/php:$7.4-cli analyse
21+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint composer registry.gitlab.com/grahamcampbell/php:7.4-base bin phpstan update -n -o
22+
- name: Run PHPStan
23+
run: docker run --rm -w /data -v ${{ github.workspace }}:/data --entrypoint vendor/bin/phpstan registry.gitlab.com/grahamcampbell/php:7.4-cli analyse --no-progress

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"php-http/multipart-stream-builder": "^1.1",
1919
"psr/cache": "^1.0",
2020
"psr/http-client-implementation": "^1.0",
21-
"psr/http-message": "^1.0"
21+
"psr/http-message": "^1.0",
22+
"symfony/polyfill-php80": "^1.17"
2223
},
2324
"require-dev": {
2425
"bamarni/composer-bin-plugin": "^1.4.1",

src/Api/AbstractApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ protected function deleteRaw(string $path, $body = null, array $headers = [])
264264
*/
265265
protected static function buildPath(string ...$parts)
266266
{
267-
$parts = array_map(function (string $part) {
267+
$parts = array_map(function (string $part) {
268268
if ($part === '') {
269269
throw new InvalidArgumentException('Missing required parameter.');
270270
}

src/JsonArray.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ final class JsonArray
2828
*
2929
* @param string $json
3030
*
31-
* @return array
32-
*
3331
* @throws \Bitbucket\Exception\DecodingFailedException
32+
*
33+
* @return array
3434
*/
3535
public static function decode(string $json)
3636
{
@@ -44,7 +44,7 @@ public static function decode(string $json)
4444

4545
if (!\is_array($data)) {
4646
throw new DecodingFailedException(
47-
sprintf('json_decode error: Expected JSON of type array, %s given.', get_debug_type($data))
47+
sprintf('json_decode error: Expected JSON of type array, %s given.', get_debug_type($data))
4848
);
4949
}
5050

@@ -56,9 +56,9 @@ public static function decode(string $json)
5656
*
5757
* @param array $value
5858
*
59-
* @return string
60-
*
6159
* @throws \Bitbucket\Exception\EncodingFailedException
60+
*
61+
* @return string
6262
*/
6363
public static function encode(array $value)
6464
{

0 commit comments

Comments
 (0)