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