Skip to content

Commit

Permalink
Added PHP 8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-helldar committed Nov 26, 2024
1 parent 8990c82 commit 45aa658
Show file tree
Hide file tree
Showing 15 changed files with 1,490 additions and 829 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json, dom, curl, libxml, fileinfo, tokenizer, xml
ini-values: error_reporting=E_ALL
coverage: none
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
fail-fast: true
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
php: [ "8.1", "8.2", "8.3" ]
php: [ "8.2", "8.3", "8.4" ]

name: check on ${{ matrix.os }} with PHP ${{ matrix.php }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json, dom, curl, libxml, fileinfo, tokenizer, xml
ini-values: error_reporting=E_ALL
coverage: none
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: true
matrix:
os: [ "ubuntu-latest", "windows-latest" ]
php: [ "8.1", "8.2", "8.3" ]
php: [ "8.2", "8.3", "8.4" ]

name: PHP ${{ matrix.php }} - ${{ matrix.os }}

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ set.

### Required

- PHP: ^8.1
- Composer: ^2.0
| Package | PHP |
|---------|-----------|
| `^5.0` | 8.2 - 8.4 |
| `^4.0` | 8.1 - 8.3 |

### Locally

Expand Down
4 changes: 2 additions & 2 deletions app/Enums/PhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ enum PhpVersion: string
{
use Values;

case v81 = '8.1';
case v81risky = '8.1-risky';
case v82 = '8.2';
case v82risky = '8.2-risky';
case v83 = '8.3';
case v83risky = '8.3-risky';
case v84 = '8.4';
case v84risky = '8.4-risky';
}
4 changes: 2 additions & 2 deletions app/Helpers/PhpVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

class PhpVersion
{
public const DEFAULT = '8.3';
public const MIN = '8.1';
public const DEFAULT = '8.4';
public const MIN = '8.2';

public static function get(): string
{
Expand Down
4 changes: 2 additions & 2 deletions app/Output/SummaryOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
class SummaryOutput extends BaseOutput
{
protected $presets = [
'8.1' => 'PHP 8.1',
'8.1-risky' => 'PHP 8.1 with risky',
'8.2' => 'PHP 8.2',
'8.2-risky' => 'PHP 8.2 with risky',
'8.3' => 'PHP 8.3',
'8.3-risky' => 'PHP 8.3 with risky',
'8.4' => 'PHP 8.4',
'8.4-risky' => 'PHP 8.4 with risky',
];
}
28 changes: 14 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.4",
"ext-dom": "*",
"ext-json": "*",
"ext-libxml": "*",
Expand All @@ -54,19 +54,19 @@
"ext-xml": "*"
},
"require-dev": {
"archtechx/enums": "^1.0",
"archtechx/enums": "^1.1",
"dragon-code/pretty-array": "^4.1",
"dragon-code/support": "^6.12.0",
"friendsofphp/php-cs-fixer": "^3.49.0",
"illuminate/view": "^10.44.0",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.20.0",
"laravel-zero/framework": "^10.3.0",
"mockery/mockery": "^1.6.7",
"nunomaduro/termwind": "^1.15.1",
"pedrotroller/php-cs-custom-fixer": "^2.33.0",
"pestphp/pest": "^2.33.6",
"seld/jsonlint": "^1.10.2",
"symfony/yaml": "^6.4.3 || ^7.0"
"dragon-code/support": "^6.15.0",
"friendsofphp/php-cs-fixer": "^3.65.0",
"illuminate/view": "^11.33.2",
"kubawerlos/php-cs-fixer-custom-fixers": "^3.22.0",
"laravel-zero/framework": "^11.0.3",
"mockery/mockery": "^1.6.12",
"nunomaduro/termwind": "^2.3",
"pedrotroller/php-cs-custom-fixer": "^2.33.2",
"pestphp/pest": "^3.5.1",
"seld/jsonlint": "^1.11.0",
"symfony/yaml": "^6.4.3 || ^7.1.6"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand All @@ -93,7 +93,7 @@
},
"optimize-autoloader": true,
"platform": {
"php": "8.1.20"
"php": "8.2.26"
},
"preferred-install": "dist",
"sort-packages": true
Expand Down
Loading

0 comments on commit 45aa658

Please sign in to comment.