Skip to content

Commit

Permalink
EA-6324:
Browse files Browse the repository at this point in the history
- make it compatible to php 8.2
- php8.0 dose no longer supported
- add php8.2 check in workflow
  • Loading branch information
KaiSchwendig committed Mar 7, 2024
1 parent 03f7965 commit cbd3db3
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 732 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
php-version: '8.1'

- name: Checkout Code
uses: actions/checkout@v2
Expand All @@ -32,8 +32,8 @@ jobs:
fail-fast: false
matrix:
php-version:
- "8.0"
- "8.1"
- "8.2"

steps:
- name: "Install PHP"
Expand Down
11 changes: 11 additions & 0 deletions .php-cs-fixer.dist.php
@@ -0,0 +1,11 @@
<?php declare(strict_types=1);

$finder = PhpCsFixer\Finder::create();
$finder->in(['src', 'tests']);
$finder->exclude('Model');

$config = new PhpCsFixer\Config();
$config->setFinder($finder);
$config->setRules(['@PSR2' => true]);

return $config;
8 changes: 4 additions & 4 deletions composer.json
Expand Up @@ -4,13 +4,13 @@
"description": "SCX-API Base Client",
"license": "MIT",
"require": {
"php": "8.0.*|8.1.*",
"php": " 8.1.* || 8.2.*",
"ext-json": "*",
"guzzlehttp/guzzle": "^7.2",
"guzzlehttp/uri-template": "^0.2.0 || ^1.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.15",
"friendsofphp/php-cs-fixer": " ^3.50.0",
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^9.0",
"psalm/phar": "^4.17"
Expand All @@ -27,10 +27,10 @@
},
"scripts": {
"phpcs": [
"vendor/bin/php-cs-fixer fix --config=./.php_cs.dist"
"vendor/bin/php-cs-fixer fix --config=./.php-cs-fixer.dist.php"
],
"phpcs-dry": [
"vendor/bin/php-cs-fixer fix --config=./.php_cs.dist --dry-run"
"vendor/bin/php-cs-fixer fix --config=./.php-cs-fixer.dist.php --dry-run"
]
},
"config": {
Expand Down

0 comments on commit cbd3db3

Please sign in to comment.