Skip to content

Commit 8bbe0cd

Browse files
committed
Keep it php 5.6 compatible
1 parent 75f1b76 commit 8bbe0cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

AspectPropertyValue.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public function __get($key)
6666
if ($this->hasValue) {
6767
return $this->value;
6868
} else {
69-
throw new \Exception($this->noValueMessage ?? '');
69+
throw new \Exception(
70+
empty($this->noValueMessage) ? '' : $this->noValueMessage
71+
);
7072
}
7173
}
7274
}

0 commit comments

Comments
 (0)