diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8596b40..70e3236 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,7 +8,7 @@ jobs: analyse: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: '8.1' @@ -39,7 +39,7 @@ jobs: - php-version: '8.2' - php-version: '8.3' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} diff --git a/composer.json b/composer.json index cdf4c5b..88f4ec4 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^7.0 || ^8.0", - "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0" + "phpunit/phpunit": "^6.5.14 || ^7.5.20 || ^8.0 || ^9.0 || ^10.0 || ^11.0.1" }, "autoload": { "psr-4": { diff --git a/dev-tools/composer.json b/dev-tools/composer.json index 1c2f9c1..37ad8e7 100644 --- a/dev-tools/composer.json +++ b/dev-tools/composer.json @@ -6,7 +6,7 @@ "ergebnis/composer-normalize": "*", "maglnet/composer-require-checker": "^3.8", "mi-schi/phpmd-extension": "^4.3", - "php-cs-fixer/shim": "^3.14.4", + "php-cs-fixer/shim": "^3.49.0", "phpmd/phpmd": "^2.13" }, "config": { diff --git a/src/Constraint/IsIdenticalString.php b/src/Constraint/IsIdenticalString.php index e5298e9..381e6b3 100644 --- a/src/Constraint/IsIdenticalString.php +++ b/src/Constraint/IsIdenticalString.php @@ -11,11 +11,13 @@ namespace PhpCsFixer\PhpunitConstraintIsIdenticalString\Constraint; -if (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0') < 0) { +use PHPUnit\Runner\Version; + +if (version_compare(Version::id(), '7.0.0') < 0) { class_alias(IsIdenticalStringForV5::class, IsIdenticalString::class); -} elseif (version_compare(\PHPUnit\Runner\Version::id(), '8.0.0') < 0) { +} elseif (version_compare(Version::id(), '8.0.0') < 0) { class_alias(IsIdenticalStringForV7::class, IsIdenticalString::class); -} elseif (version_compare(\PHPUnit\Runner\Version::id(), '9.0.0') < 0) { +} elseif (version_compare(Version::id(), '9.0.0') < 0) { class_alias(IsIdenticalStringForV8::class, IsIdenticalString::class); } else { class_alias(IsIdenticalStringForV9::class, IsIdenticalString::class);