honeybee / trellis

Library for defining structured entities in php.
Mozilla Public License 2.0
8 stars 1 forks source link

Two TimestampVH instances are always compared as being equal #12

Closed graste closed 9 years ago

graste commented 9 years ago

The TimestampValueHolder::valueEquals method always treats two values that are objects as being the same as the null check is being done with === instead of using a boolean &&. m(

This may actively prevent setting a different date/timestamp value when sameValueAs on the valueholder is being used prior to accepting values (to prevent setting already set values).