From 3913bba3e431e510105bcaa4c9ac0b15ec0e523b Mon Sep 17 00:00:00 2001 From: Vyacheslav Date: Wed, 5 Feb 2014 17:24:34 +0200 Subject: [PATCH] Updated readProperty initial value. --- Util/MessageBinder.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Util/MessageBinder.php b/Util/MessageBinder.php index 748c2c9..39e32fe 100644 --- a/Util/MessageBinder.php +++ b/Util/MessageBinder.php @@ -39,6 +39,7 @@ public function __construct($message) public function readProperty($property) { + $value = null; if ($this->reflectionClass->hasMethod($getter = 'get'.$property)) { if (!$this->reflectionClass->getMethod($getter)->isPublic()) { throw new \RuntimeException(sprintf('Method "%s()" is not public in class "%s"', $getter, $this->reflectionClass->name));