Skip to content

Commit b311450

Browse files
committed
Drop PHP 8.1, Upgrade Psalm to v6 & PHPUnit to v11
1 parent 1ac7436 commit b311450

File tree

8 files changed

+812
-356
lines changed

8 files changed

+812
-356
lines changed

.github/workflows/continuous-integration.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
tags:
1010

1111
env:
12-
default_php: '7.3'
12+
default_php: '8.2'
1313
php_extensions:
1414

1515
jobs:
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/[email protected]
2727
- uses: shivammathur/[email protected]
2828
with:
29-
php-version: 8.1
29+
php-version: 8.2
3030
ini-values: memory_limit=-1
3131
- uses: ramsey/[email protected]
3232
- run: composer global config bin-dir /usr/local/bin

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor/
22
phpunit.xml
3+
rector.php

Makefile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
sa: ## Run static analysis checks
23+
vendor/bin/psalm --no-cache --threads=1
24+
.PHONY: sa
25+
26+
cs: ## Run coding standards checks
27+
vendor/bin/phpcs
28+
.PHONY: cs
29+
30+
test: ## Run unit tests
31+
vendor/bin/phpunit
32+
.PHONY: test
33+
34+
qa: cs sa test ## Run all QA Checks
35+
.PHONY: check
36+
37+
get-rector: ## Install rector as a dev dependency
38+
ifeq (,$(wildcard ./vendor/bin/rector))
39+
composer require --dev rector/rector
40+
endif
41+
.PHONY: get-rector
42+
43+
remove-rector: ## Remove rector dependency
44+
composer remove --dev rector/rector
45+
.PHONY: remove-rector
46+
47+
rector: get-rector ## Run Rector
48+
vendor/bin/rector
49+
.PHONY: rector

composer.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prefer-stable" : true,
1616
"sort-packages": true,
1717
"platform": {
18-
"php": "8.1.99"
18+
"php": "8.2.99"
1919
},
2020
"allow-plugins": {
2121
"dealerdirect/phpcodesniffer-composer-installer": true
@@ -25,17 +25,20 @@
2525
"bin/rev"
2626
],
2727
"require": {
28-
"php": "~8.1 || ~8.2 || ~8.3",
29-
"ramsey/uuid": "^4",
30-
"symfony/console": "^5 || ^6 || ^7",
28+
"php": "~8.2 || ~8.3 || ~8.4",
29+
"ramsey/uuid": "^4.7.0",
30+
"symfony/console": "^6.4.17 || ^7.2",
3131
"webmozart/assert": "^1.11"
3232
},
3333
"require-dev": {
3434
"doctrine/coding-standard": "^12.0.0",
35-
"phpunit/phpunit": "^10.5.9",
36-
"psalm/plugin-phpunit": "^0.19.0",
37-
"squizlabs/php_codesniffer": "^3.8.1",
38-
"vimeo/psalm": "^5.20"
35+
"phpunit/phpunit": "^11.5.4",
36+
"psalm/plugin-phpunit": "^0.19.2",
37+
"squizlabs/php_codesniffer": "^3.11.3",
38+
"vimeo/psalm": "^6.0.0"
39+
},
40+
"conflict": {
41+
"symfony/string": "<6.4.15 || <7.2.0"
3942
},
4043
"autoload": {
4144
"psr-4": {

0 commit comments

Comments
 (0)