diff --git a/.devcontainer/phpnext/devcontainer.json b/.devcontainer/phpnext/devcontainer.json index 009bd11b..aca7b1de 100644 --- a/.devcontainer/phpnext/devcontainer.json +++ b/.devcontainer/phpnext/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Dev Codespace - PHP Next", - "image": "php:8.3.0beta2-cli", + "image": "php:8.3-cli", // Features to add to the dev container. More info: https://containers.dev/features. "features": { diff --git a/.devcontainer/prod/devcontainer.json b/.devcontainer/prod/devcontainer.json index 28654b24..14355220 100644 --- a/.devcontainer/prod/devcontainer.json +++ b/.devcontainer/prod/devcontainer.json @@ -1,6 +1,6 @@ { "name": "Production Codespace", - "image": "mcr.microsoft.com/devcontainers/php:8.2-bookworm", + "image": "mcr.microsoft.com/devcontainers/php:8.3-bookworm", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/.github/workflows/execute_all_tests.yml b/.github/workflows/execute_all_tests.yml index 4a8d41f0..4609725c 100644 --- a/.github/workflows/execute_all_tests.yml +++ b/.github/workflows/execute_all_tests.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-latest, windows-latest, macos-14] - php-versions: ['8.2', '8.3'] + php-versions: ['8.3'] php-extensions: ['pdo,pdo_sqlite,mbstring,json', 'none,curl,mbstring,json,dom,openssl,tokenizer,xml,xmlwriter,zip'] fail-fast: false diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c1cb63a..053f3d44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ CHANGELOG ========= All notable changes to this project will be documented in this file. +## [v4.7.0] - 2024-05-xx +### Description +The minimum PHP version is now 8.3 + +#### Dev +- Complete the migration to Pest PHP + ## [v4.6.1] - 2024-04-23 ### Description Half-migration of tests to PestPHP. diff --git a/Dockerfile b/Dockerfile index 50ca1f98..f46b87c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.2-cli-bookworm +FROM php:8.3-cli-bookworm COPY . /usr/src/condorcetapp WORKDIR /usr/src/condorcetapp diff --git a/README.md b/README.md index 7db17268..5237171a 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,8 @@ _Both approaches can handle up to hundreds of millions of votes (or more) on mod | Version | PHP Requirements | State | Support | --- | --- | --- | --- | -| 4.6 | 8.2 | Stable | ✔ _support provided_ +| 4.7 | 8.3 | Stable | ✔ _support provided_ +| 4.6 | 8.2 | Old Stable | ✔ _support provided_ | 3.x | 8.1 | Old Stable | ❌ _not any support_ | 2.2 | 7.4 | Old Stable | ❌ _support requiring some bait_ | 2.0 | 7.1 | Old Stable | ❌ _not any support_ diff --git a/composer.json b/composer.json index aa2fd68d..0d108199 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ } ], "require": { - "php": "^8.2", + "php": "^8.3", "ext-json": "*", "ext-mbstring": "*", "symfony/console": "^7.0", @@ -35,11 +35,10 @@ "ext-pdo": "*", "ext-pdo_sqlite": "*", "phpbench/phpbench": "*", - "phpunit/phpunit": "^10.5", "haydenpierce/class-finder": ">= 0.5.3", "phpstan/phpstan": "^1.9", - "laravel/pint": "^1.13", - "pestphp/pest": "^2.32", + "laravel/pint": "^1.16", + "pestphp/pest": "^2.34", "pestphp/pest-plugin-drift": "^2.0", "cmgmyr/phploc": "^8.0", "infection/infection": "^0.27, >= 0.27.7", diff --git a/src/Condorcet.php b/src/Condorcet.php index 6d56f246..b166be47 100644 --- a/src/Condorcet.php +++ b/src/Condorcet.php @@ -54,7 +54,7 @@ abstract class Condorcet final public const HOMEPAGE = 'https://github.com/julien-boudry/Condorcet'; #[PublicAPI] - final public const VERSION = '4.6.1'; + final public const VERSION = '4.7.0'; #[PublicAPI] final public const CONDORCET_BASIC_CLASS = Algo\Methods\CondorcetBasic::class;