Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Dec 3, 2023
1 parent 0279aa4 commit 7306aa2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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
Expand All @@ -13,6 +13,11 @@ static-phpstan-update-baseline:
composer bin phpstan update
$(MAKE) static-phpstan PHPSTAN_PARAMS="--generate-baseline"

static-psalm:
composer install
composer bin psalm update
vendor/bin/psalm.phar $(PSALM_PARAMS)

static-codestyle-fix:
composer install
composer bin php-cs-fixer update
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

0 comments on commit 7306aa2

Please sign in to comment.