Skip to content

Commit

Permalink
chore: upgrade PHP CS Fixer (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored Feb 4, 2024
1 parent da47a41 commit 2f9c72a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-tools/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 5 additions & 3 deletions src/Constraint/IsIdenticalString.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2f9c72a

Please sign in to comment.