Skip to content

Commit

Permalink
Merge pull request #562 from netglue/major-dev-deps
Browse files Browse the repository at this point in the history
Drop support for PHP 8.1, Upgrade Psalm to v6 & PHPUnit to v11
  • Loading branch information
gsteel authored Jan 29, 2025
2 parents 49f1c71 + 2c7fb45 commit 1f66a21
Show file tree
Hide file tree
Showing 37 changed files with 1,025 additions and 549 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.github export-ignore
/.laminas-ci.json export-ignore
/composer.lock export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/psalm.xml export-ignore
/psalm-baseline.xml export-ignore
/test/ export-ignore
/Makefile export-ignore
/renovate.json export-ignore
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/[email protected]
- uses: shivammathur/[email protected]
with:
php-version: 8.1
php-version: 8.2
extensions: pcov
coverage: pcov
ini-values: pcov.enabled=1
Expand All @@ -41,7 +41,7 @@ jobs:
- uses: actions/[email protected]
- uses: shivammathur/[email protected]
with:
php-version: 8.1
php-version: 8.2
- uses: "ramsey/[email protected]"
with:
dependency-versions: "highest"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ phpunit.xml
.phpunit.cache
.phpunit.result.cache
.php_cs.cache
rector.php
54 changes: 54 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Run `make` (no arguments) to get a short description of what is available
# within this `Makefile`.

help: ## shows this help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_\-\.]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.PHONY: help

install: ## Install PHP dependencies
composer install
.PHONY: install

update: ## Update PHP dependencies
composer update
.PHONY: update

bump: ## Update PHP dependencies
composer update
composer bump -D
composer update
.PHONY: update

clean: ## Clear out caches
rm -rf .phpunit.cache
rm -f .php_cs-cache
vendor/bin/psalm --clear-cache

sa: ## Run static analysis checks
vendor/bin/psalm --no-cache --threads=1
.PHONY: sa

cs: ## Run coding standards checks
vendor/bin/phpcs
.PHONY: cs

test: ## Run unit tests
vendor/bin/phpunit
.PHONY: test

qa: cs sa test ## Run all QA Checks
.PHONY: check

get-rector: ## Install rector as a dev dependency
ifeq (,$(wildcard ./vendor/bin/rector))
composer require --dev rector/rector
endif
.PHONY: get-rector

remove-rector: ## Remove rector dependency
composer remove --dev rector/rector
.PHONY: remove-rector

rector: get-rector ## Run Rector
vendor/bin/rector
.PHONY: rector
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"php-http/discovery": false
},
"platform": {
"php": "8.1.99"
"php": "8.2.99"
}
},
"autoload": {
Expand All @@ -35,7 +35,7 @@
}
},
"require": {
"php": "~8.1 || ~8.2 || ~8.3 || ~8.4",
"php": "~8.2 || ~8.3 || ~8.4",
"ext-json": "*",
"laminas/laminas-escaper": "^2.9",
"php-http/discovery": "^1.18.0",
Expand All @@ -52,11 +52,11 @@
"php-http/cache-plugin": "^2.0.1",
"php-http/curl-client": "^2.3.3",
"php-http/mock-client": "^1.6.1",
"phpunit/phpunit": "^10.5.38",
"psalm/plugin-phpunit": "^0.19.0",
"phpunit/phpunit": "^11.5.4",
"psalm/plugin-phpunit": "^0.19.2",
"roave/security-advisories": "dev-latest",
"symfony/cache": "^6.4.13 || ^7.0",
"vimeo/psalm": "^5.26.1"
"symfony/cache": "^6.4.13 || ^7.2.3",
"vimeo/psalm": "^6.0.0"
},
"conflict": {
"php-http/httplug": "<2.4.1",
Expand Down
Loading

0 comments on commit 1f66a21

Please sign in to comment.