Skip to content

Commit

Permalink
chore: upgrade PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus committed Feb 4, 2024
1 parent 8e141b1 commit 483fd22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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
6 changes: 4 additions & 2 deletions src/Constraint/XmlMatchesXsd.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

namespace PhpCsFixer\PhpunitConstraintXmlMatchesXsd\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(XmlMatchesXsdForV5::class, XmlMatchesXsd::class);
} elseif (version_compare(\PHPUnit\Runner\Version::id(), '8.0.0') < 0) {
} elseif (version_compare(Version::id(), '8.0.0') < 0) {
class_alias(XmlMatchesXsdForV7::class, XmlMatchesXsd::class);
} else {
class_alias(XmlMatchesXsdForV8::class, XmlMatchesXsd::class);
Expand Down

0 comments on commit 483fd22

Please sign in to comment.