Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer requirement updates #234

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
php-versions: ['8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
php-versions: ['8.2', '8.3']

steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 3 additions & 3 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
->in(__DIR__ . '/tests')
;

return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
$config = new PhpCsFixer\Config();
$config->setUsingCache(false);
return $config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
])
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fix:
php vendor/bin/php-cs-fixer fix --config=.php_cs

lint:
php vendor/bin/php-cs-fixer fix --config=.php_cs --dry-run
php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --dry-run
php vendor/bin/phpmd src/ text cleancode,codesize,controversial,design,naming,unusedcode
php vendor/bin/phpmd tests/ text cleancode,codesize,controversial,design,naming,unusedcode

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "PHP binding for v4 of the Cloudflare Client API.",
"type": "library",
"require": {
"guzzlehttp/guzzle": "^7.0.1",
"php": ">=7.2.5",
"guzzlehttp/guzzle": "^7.3.0",
"php": ">=8.2",
"psr/http-message": "~1.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"phpunit/phpunit": "^9.1.2",
"phpmd/phpmd" : "@stable",
"friendsofphp/php-cs-fixer": "^2.6"
"friendsofphp/php-cs-fixer": "^3.13"
},
"license": "BSD-3-Clause",
"authors": [
Expand Down
Loading