Skip to content

Commit

Permalink
Update Symfony client compatibility in composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Nov 21, 2024
1 parent 575a922 commit fdfdebe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: PHP CS Fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run

- name: Run ergebnis/composer-normalize
run: composer normalize --dry-run --no-check-lock

tests-common:
runs-on: ubuntu-latest
strategy:
Expand Down
24 changes: 15 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "prestashop/circuit-breaker",
"description": "A circuit breaker implementation for PHP",
"type": "library",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "PrestaShop SA",
Expand All @@ -15,22 +15,23 @@
],
"require": {
"php": ">=7.2.5",
"symfony/http-client": "^5.4"
"ergebnis/composer-normalize": "^2.44",
"symfony/http-client": "^5.4 || ^6"
},
"require-dev": {
"doctrine/cache": "^1.10.2",
"guzzlehttp/guzzle": "^7.3",
"phpunit/phpunit": "^8",
"doctrine/cache": "^1.10.2",
"symfony/cache": "^4.4",
"symfony/event-dispatcher": "^4.4",
"prestashop/php-dev-tools": "^4.1",
"psr/simple-cache": "^1.0",
"prestashop/php-dev-tools": "^4.1"
"symfony/cache": "^4.4",
"symfony/event-dispatcher": "^4.4"
},
"suggest": {
"symfony/cache": "Allows use of Symfony Cache adapters to store transactions",
"doctrine/cache": "Allows use of Doctrine Cache adapters to store transactions",
"ext-apcu": "Allows use of APCu adapter (performant) to store transactions",
"guzzlehttp/guzzle": "Allows use of Guzzle to perform HTTP requests instead of Symfony HttpClient"
"doctrine/cache": "Allows use of Doctrine Cache adapters to store transactions",
"guzzlehttp/guzzle": "Allows use of Guzzle to perform HTTP requests instead of Symfony HttpClient",
"symfony/cache": "Allows use of Symfony Cache adapters to store transactions"
},
"autoload": {
"psr-4": {
Expand All @@ -42,6 +43,11 @@
"Tests\\PrestaShop\\CircuitBreaker\\": "tests/"
}
},
"config": {
"allow-plugins": {
"ergebnis/composer-normalize": true
}
},
"scripts": {
"cs-fix": "@php ./vendor/bin/php-cs-fixer fix",
"test": "@php ./vendor/bin/phpunit",
Expand Down

0 comments on commit fdfdebe

Please sign in to comment.