`$historySize` and `$eraseDups` aren't set unless `$this->useReadline()` above. If you're going to use them in the Transient readline, you'll need to move them out of the conditional block above.