We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1325155 commit 3941ebaCopy full SHA for 3941eba
DateTimeAttribute.php
@@ -54,9 +54,9 @@ function __invoke()
54
public function getValue()
55
{
56
try {
57
- if ($this->_value)
+ if ($this->_value !== null) {
58
return $this->_value;
59
- else {
+ } else {
60
$originalValue = $this->behavior->owner->{$this->originalAttribute};
61
if ($originalValue === null)
62
return $this->nullValue;
0 commit comments