Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Sep 25, 2022
1 parent bb6bbf4 commit 147921d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/OptionStack.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function offsetSetDefault($offset, $default = null): void
*/
public function offsetSetOrDefault($offset, $value = null, $default = null): void
{
$this->options[$offset] = !empty($value) ? $value : $default;
$this->options[$offset] = $value ?: $default;
}

/**
Expand Down

0 comments on commit 147921d

Please sign in to comment.