summaryrefslogtreecommitdiffstats
path: root/12.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-13 08:41:52 +0200
committerRemi Collet <remi@remirepo.net>2020-10-13 08:41:52 +0200
commit5a2725ef5c49dc7166ceb29a027563466fa0e6b5 (patch)
treed328dc16c99563ad36812d2c1e7fd3b8776d9886 /12.patch
parentff7a5f9003bff9cbb407a438b0b76508e8cb599c (diff)
update to 1.2.0
drop dependency on phpunitgoodpractices/polyfill add patch for old phpunit from https://github.com/PHP-CS-Fixer/phpunit-constraint-xmlmatchesxsd/pull/12 switch to classmap autoloader
Diffstat (limited to '12.patch')
-rw-r--r--12.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/12.patch b/12.patch
new file mode 100644
index 0000000..5235bfa
--- /dev/null
+++ b/12.patch
@@ -0,0 +1,23 @@
+From 9d351061fdc28a58e5a75effd4879c4e556585d2 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 13 Oct 2020 08:35:27 +0200
+Subject: [PATCH] fix for PHPUnit 5
+
+---
+ src/Constraint/XmlMatchesXsd.php | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/Constraint/XmlMatchesXsd.php b/src/Constraint/XmlMatchesXsd.php
+index f981ab5..e9e6490 100644
+--- a/src/Constraint/XmlMatchesXsd.php
++++ b/src/Constraint/XmlMatchesXsd.php
+@@ -12,7 +12,8 @@
+
+ namespace PhpCsFixer\PhpunitConstraintXmlMatchesXsd\Constraint;
+
+-if (version_compare(\PHPUnit\Runner\Version::id(), '7.0.0') < 0) {
++if (!class_exists('\PHPUnit\Runner\Version')
++ || version_compare(\PHPUnit\Runner\Version::id(), '7.0.0') < 0) {
+ class_alias(XmlMatchesXsdForV5::class, XmlMatchesXsd::class);
+ } elseif (version_compare(\PHPUnit\Runner\Version::id(), '8.0.0') < 0) {
+ class_alias(XmlMatchesXsdForV7::class, XmlMatchesXsd::class);