Skip to content

Commit 5409deb

Browse files
authored
chore: upgrade PHP CS Fixer (#23)
1 parent 8e141b1 commit 5409deb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dev-tools/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ergebnis/composer-normalize": "*",
77
"maglnet/composer-require-checker": "^3.8",
88
"mi-schi/phpmd-extension": "^4.3",
9-
"php-cs-fixer/shim": "^3.14.4",
9+
"php-cs-fixer/shim": "^3.49.0",
1010
"phpmd/phpmd": "^2.13"
1111
},
1212
"config": {

src/Constraint/XmlMatchesXsd.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212

1313
namespace PhpCsFixer\PhpunitConstraintXmlMatchesXsd\Constraint;
1414

15-
if (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0') < 0) {
15+
use PHPUnit\Runner\Version;
16+
17+
if (version_compare(Version::id(), '7.0.0') < 0) {
1618
class_alias(XmlMatchesXsdForV5::class, XmlMatchesXsd::class);
17-
} elseif (version_compare(\PHPUnit\Runner\Version::id(), '8.0.0') < 0) {
19+
} elseif (version_compare(Version::id(), '8.0.0') < 0) {
1820
class_alias(XmlMatchesXsdForV7::class, XmlMatchesXsd::class);
1921
} else {
2022
class_alias(XmlMatchesXsdForV8::class, XmlMatchesXsd::class);

0 commit comments

Comments
 (0)