Skip to content

Commit

Permalink
fix: Null parameter error when instantiating readline
Browse files Browse the repository at this point in the history
bool $eraseDuplicates is nullable which can result in an error when calling getReadLine. Assigned default value of false as fix.

(fix) Null parameter error when instantiating readline

bool $eraseDuplicates is nullable which can result in an error when calling getReadLine. Assigned default value of false as fix.
  • Loading branch information
Fludem committed Dec 8, 2024
1 parent 7688bb1 commit 99815c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ public function getHistorySize()
*/
public function setEraseDuplicates(bool $value)
{
$this->eraseDuplicates = (bool) $value;
$this->eraseDuplicates = $value;
}

/**
Expand Down

0 comments on commit 99815c8

Please sign in to comment.