Skip to content

Commit 28dace2

Browse files
committed
Adjust conditional to be less pervasive and more explicit
1 parent 0ed20a0 commit 28dace2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modifiers/DefaultValue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public function settings(): array
2828

2929
public function handle($value = null, array $settings = []): string
3030
{
31-
return empty($value) ? $settings['string'] : $value;
31+
return $value === null ? $settings['string'] : $value;
3232
}
3333
}

0 commit comments

Comments
 (0)