Skip to content

Commit

Permalink
Upgrade actions/checkout and SA tools (#25)
Browse files Browse the repository at this point in the history
* Upgrade actions/checkout and SA tools

* Fixes

* Update Makefile
  • Loading branch information
GrahamCampbell authored Dec 3, 2023
1 parent 3584e81 commit ecea8fe
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Composer normalize
uses: docker://ergebnis/composer-normalize-action
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
extensions: mbstring

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress
Expand All @@ -46,7 +46,7 @@ jobs:
extensions: mbstring

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: composer update --no-interaction --no-progress
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -63,7 +63,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
test:
php vendor/bin/phpunit tests/ --colors=always

static: static-phpstan static-codestyle-check
static: static-phpstan static-psalm static-codestyle-check

static-phpstan:
composer install
composer bin phpstan update
vendor/bin/phpstan analyze $(PHPSTAN_PARAMS)

static-phpstan-update-baseline:
static-psalm:
composer install
composer bin phpstan update
$(MAKE) static-phpstan PHPSTAN_PARAMS="--generate-baseline"
composer bin psalm update
vendor/bin/psalm.phar $(PSALM_PARAMS)

static-codestyle-fix:
composer install
Expand Down
12 changes: 9 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
],
"require": {
"php" : "^7.2.5 || ^8.0",
"symfony/polyfill-php80": "^1.17"
"symfony/polyfill-php80": "^1.24"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8.1",
"phpunit/phpunit" : "^8.5.19 || ^9.5.8",
"bamarni/composer-bin-plugin": "^1.8.2",
"phpunit/phpunit" : "^8.5.36 || ^9.6.15",
"uri-template/tests": "1.0.0"
},
"autoload": {
Expand All @@ -60,6 +60,12 @@
"GuzzleHttp\\UriTemplate\\Tests\\": "tests"
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": false
}
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
Expand Down
1 change: 0 additions & 1 deletion src/UriTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ private static function expandMatch(array $matches, array $variables): string
continue;
}

/** @var mixed */
$variable = $variables[$value['value']];
$actuallyUseQuery = $useQuery;
$expanded = '';
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/php-cs-fixer/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "3.23.0"
"friendsofphp/php-cs-fixer": "3.40.2"
},
"config": {
"preferred-install": "dist"
Expand Down
2 changes: 1 addition & 1 deletion vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"php": "^7.4 || ^8.0",
"phpstan/phpstan": "1.10.32",
"phpstan/phpstan": "1.10.47",
"phpstan/phpstan-deprecation-rules": "1.1.4"
},
"config": {
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": "^7.4 || ^8.0",
"psalm/phar": "5.15.0"
"psalm/phar": "5.16.0"
},
"config": {
"preferred-install": "dist"
Expand Down

0 comments on commit ecea8fe

Please sign in to comment.