Skip to content

Commit 8bcc014

Browse files
authored
Merge pull request #563 from netglue/1.13.x-merge-up-into-2.0.x_Xwwv3GI3
Merge release 1.13.0 into 2.0.x
2 parents 6f3015f + 1f66a21 commit 8bcc014

37 files changed

+1106
-608
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/.gitattributes export-ignore
22
/.gitignore export-ignore
3+
/.github export-ignore
4+
/.laminas-ci.json export-ignore
35
/composer.lock export-ignore
46
/phpcs.xml export-ignore
57
/phpunit.xml.dist export-ignore
8+
/psalm.xml export-ignore
9+
/psalm-baseline.xml export-ignore
610
/test/ export-ignore
11+
/Makefile export-ignore
12+
/renovate.json export-ignore

.github/workflows/continuous-integration.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/[email protected]
18-
- uses: shivammathur/setup-php@2.31.1
18+
- uses: shivammathur/setup-php@2.32.0
1919
with:
20-
php-version: 8.1
20+
php-version: 8.2
2121
extensions: pcov
2222
coverage: pcov
2323
ini-values: pcov.enabled=1
@@ -39,9 +39,9 @@ jobs:
3939

4040
steps:
4141
- uses: actions/[email protected]
42-
- uses: shivammathur/setup-php@2.31.1
42+
- uses: shivammathur/setup-php@2.32.0
4343
with:
44-
php-version: 8.1
44+
php-version: 8.2
4545
- uses: "ramsey/[email protected]"
4646
with:
4747
dependency-versions: "highest"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ phpunit.xml
44
.phpunit.cache
55
.phpunit.result.cache
66
.php_cs.cache
7+
rector.php

Makefile

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Run `make` (no arguments) to get a short description of what is available
2+
# within this `Makefile`.
3+
4+
help: ## shows this help
5+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
6+
.PHONY: help
7+
8+
install: ## Install PHP dependencies
9+
composer install
10+
.PHONY: install
11+
12+
update: ## Update PHP dependencies
13+
composer update
14+
.PHONY: update
15+
16+
bump: ## Update PHP dependencies
17+
composer update
18+
composer bump -D
19+
composer update
20+
.PHONY: update
21+
22+
clean: ## Clear out caches
23+
rm -rf .phpunit.cache
24+
rm -f .php_cs-cache
25+
vendor/bin/psalm --clear-cache
26+
27+
sa: ## Run static analysis checks
28+
vendor/bin/psalm --no-cache --threads=1
29+
.PHONY: sa
30+
31+
cs: ## Run coding standards checks
32+
vendor/bin/phpcs
33+
.PHONY: cs
34+
35+
test: ## Run unit tests
36+
vendor/bin/phpunit
37+
.PHONY: test
38+
39+
qa: cs sa test ## Run all QA Checks
40+
.PHONY: check
41+
42+
get-rector: ## Install rector as a dev dependency
43+
ifeq (,$(wildcard ./vendor/bin/rector))
44+
composer require --dev rector/rector
45+
endif
46+
.PHONY: get-rector
47+
48+
remove-rector: ## Remove rector dependency
49+
composer remove --dev rector/rector
50+
.PHONY: remove-rector
51+
52+
rector: get-rector ## Run Rector
53+
vendor/bin/rector
54+
.PHONY: rector

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php-http/discovery": false
2020
},
2121
"platform": {
22-
"php": "8.1.99"
22+
"php": "8.2.99"
2323
}
2424
},
2525
"autoload": {
@@ -35,7 +35,7 @@
3535
}
3636
},
3737
"require": {
38-
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4",
38+
"php": "~8.2 || ~8.3 || ~8.4",
3939
"ext-json": "*",
4040
"laminas/laminas-escaper": "^2.9",
4141
"php-http/discovery": "^1.18.0",
@@ -52,11 +52,11 @@
5252
"php-http/cache-plugin": "^2.0.1",
5353
"php-http/curl-client": "^2.3.3",
5454
"php-http/mock-client": "^1.6.1",
55-
"phpunit/phpunit": "^10.5.38",
56-
"psalm/plugin-phpunit": "^0.19.0",
55+
"phpunit/phpunit": "^11.5.4",
56+
"psalm/plugin-phpunit": "^0.19.2",
5757
"roave/security-advisories": "dev-latest",
58-
"symfony/cache": "^6.4.13 || ^7.0",
59-
"vimeo/psalm": "^5.26.1"
58+
"symfony/cache": "^6.4.13 || ^7.2.3",
59+
"vimeo/psalm": "^6.0.0"
6060
},
6161
"conflict": {
6262
"php-http/httplug": "<2.4.1",

0 commit comments

Comments
 (0)