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));