Closed JackieXu closed 9 years ago
The following line:
$value = isset($this->properties[$name]) ?: null;
will always evaluate to true or null.
Leaving out the middle part of PHP's ternary operator will make it equal to the first part, which is a boolean. I can send in a pull request, but I don't know where and how you would want those.
The following should work:
$value = isset($this->properties[$name]) ? $this->properties[$name] : null;
Oh, missed that it was already fixed in 1.7. My bad.
Sorry for spamming, but the issue still appears to exist.
ha, I will check it. Thanks for reporting
Fixed and new release 2.0.10 .
Thanks again.
The following line:
will always evaluate to true or null.
Leaving out the middle part of PHP's ternary operator will make it equal to the first part, which is a boolean. I can send in a pull request, but I don't know where and how you would want those.
The following should work: