From 2c2a5bad33939d266df439bdb9f38f8a67fd9b35 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Wed, 21 Dec 2011 13:25:18 +0100 Subject: [PATCH] Leftover. --- PHPUnit/Framework/Constraint/ExceptionCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PHPUnit/Framework/Constraint/ExceptionCode.php b/PHPUnit/Framework/Constraint/ExceptionCode.php index 4c126cf5d87..4ec3cef106b 100644 --- a/PHPUnit/Framework/Constraint/ExceptionCode.php +++ b/PHPUnit/Framework/Constraint/ExceptionCode.php @@ -79,7 +79,7 @@ public function __construct($expected) */ protected function matches($other) { - return $other->getCode() == $this->expectedCode; + return (string)$other->getCode() == (string)$this->expectedCode; } /**