diff --git a/src/Input.php b/src/Input.php index 42390c95..4c93b45e 100644 --- a/src/Input.php +++ b/src/Input.php @@ -101,8 +101,7 @@ public function setBreakOnFailure($breakOnFailure) */ public function setErrorMessage($errorMessage) { - $errorMessage = (null === $errorMessage) ? null : (string) $errorMessage; - $this->errorMessage = $errorMessage; + $this->errorMessage = (null === $errorMessage) ? null : (string) $errorMessage; return $this; }