Skip to content

Commit ecea8fe

Browse files
Upgrade actions/checkout and SA tools (#25)
* Upgrade actions/checkout and SA tools * Fixes * Update Makefile
1 parent 3584e81 commit ecea8fe

File tree

9 files changed

+22
-17
lines changed

9 files changed

+22
-17
lines changed

.github/workflows/checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Composer normalize
2121
uses: docker://ergebnis/composer-normalize-action

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
extensions: mbstring
2121

2222
- name: Checkout code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Install dependencies
2626
run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress
@@ -46,7 +46,7 @@ jobs:
4646
extensions: mbstring
4747

4848
- name: Checkout code
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050

5151
- name: Install dependencies
5252
run: composer update --no-interaction --no-progress

.github/workflows/static.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout code
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343

4444
- name: Setup PHP
4545
uses: shivammathur/setup-php@v2
@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Checkout code
66-
uses: actions/checkout@v3
66+
uses: actions/checkout@v4
6767

6868
- name: Setup PHP
6969
uses: shivammathur/setup-php@v2

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
test:
22
php vendor/bin/phpunit tests/ --colors=always
33

4-
static: static-phpstan static-codestyle-check
4+
static: static-phpstan static-psalm static-codestyle-check
55

66
static-phpstan:
77
composer install
88
composer bin phpstan update
99
vendor/bin/phpstan analyze $(PHPSTAN_PARAMS)
1010

11-
static-phpstan-update-baseline:
11+
static-psalm:
1212
composer install
13-
composer bin phpstan update
14-
$(MAKE) static-phpstan PHPSTAN_PARAMS="--generate-baseline"
13+
composer bin psalm update
14+
vendor/bin/psalm.phar $(PSALM_PARAMS)
1515

1616
static-codestyle-fix:
1717
composer install

composer.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@
4343
],
4444
"require": {
4545
"php" : "^7.2.5 || ^8.0",
46-
"symfony/polyfill-php80": "^1.17"
46+
"symfony/polyfill-php80": "^1.24"
4747
},
4848
"require-dev": {
49-
"bamarni/composer-bin-plugin": "^1.8.1",
50-
"phpunit/phpunit" : "^8.5.19 || ^9.5.8",
49+
"bamarni/composer-bin-plugin": "^1.8.2",
50+
"phpunit/phpunit" : "^8.5.36 || ^9.6.15",
5151
"uri-template/tests": "1.0.0"
5252
},
5353
"autoload": {
@@ -60,6 +60,12 @@
6060
"GuzzleHttp\\UriTemplate\\Tests\\": "tests"
6161
}
6262
},
63+
"extra": {
64+
"bamarni-bin": {
65+
"bin-links": true,
66+
"forward-command": false
67+
}
68+
},
6369
"config": {
6470
"allow-plugins": {
6571
"bamarni/composer-bin-plugin": true

src/UriTemplate.php

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ private static function expandMatch(array $matches, array $variables): string
132132
continue;
133133
}
134134

135-
/** @var mixed */
136135
$variable = $variables[$value['value']];
137136
$actuallyUseQuery = $useQuery;
138137
$expanded = '';

vendor-bin/php-cs-fixer/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"friendsofphp/php-cs-fixer": "3.23.0"
4+
"friendsofphp/php-cs-fixer": "3.40.2"
55
},
66
"config": {
77
"preferred-install": "dist"

vendor-bin/phpstan/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"phpstan/phpstan": "1.10.32",
4+
"phpstan/phpstan": "1.10.47",
55
"phpstan/phpstan-deprecation-rules": "1.1.4"
66
},
77
"config": {

vendor-bin/psalm/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"psalm/phar": "5.15.0"
4+
"psalm/phar": "5.16.0"
55
},
66
"config": {
77
"preferred-install": "dist"

0 commit comments

Comments
 (0)