Review the proposed patch then download it to apply it manually or execute the following command from the repository root directory:
curl https://fabbot.io/patch/FriendsOfPHP/PHP-CS-Fixer/3561/a3712f04c1d89c807c5f57ab75ed084590816371/cs.diff | patch -p0
diff -ru tests/Test/Constraint/SameStringsConstraint.php tests/Test/Constraint/SameStringsConstraint.php
--- tests/Test/Constraint/SameStringsConstraint.php 2018-02-22 16:58:57.264975456 +0000
+++ tests/Test/Constraint/SameStringsConstraint.php 2018-02-22 16:58:58.220955499 +0000
@@ -36,8 +36,8 @@
return ' #Warning: Strings contain different line endings! Debug using remapping ["\r" => "R", "\n" => "N", "\t" => "T"]:'
."\n"
- .' -'.str_replace(["\r", "\n", "\t"], ['R', 'N', 'T'], $other)
+ .' -'.str_replace(array("\r", "\n", "\t"), array('R', 'N', 'T'), $other)
."\n"
- .' +'.str_replace(["\r", "\n", "\t"], ['R', 'N', 'T'], $this->value);
+ .' +'.str_replace(array("\r", "\n", "\t"), array('R', 'N', 'T'), $this->value);
}
}
diff -ru tests/Test/Constraint/XmlMatchesXsdConstraint.php tests/Test/Constraint/XmlMatchesXsdConstraint.php
--- tests/Test/Constraint/XmlMatchesXsdConstraint.php 2018-02-22 16:58:57.530969903 +0000
+++ tests/Test/Constraint/XmlMatchesXsdConstraint.php 2018-02-22 16:58:58.043959194 +0000
@@ -28,7 +28,7 @@
/**
* @var string[]
*/
- private $xmlConstraintErrors = [];
+ private $xmlConstraintErrors = array();
/**
* @var string