This changelog references the relevant changes done in 0.x versions.
- BUG: Do not use v0.1.5. scrutinizer recommended fix (unused argument on Enum) created fatal error. Added unit tests for enum.
- [Microtime] Ensure
toDateTime
returns a DateTime object in UTC regardless of php config.
- Added
toSnakeFromSlug
andtoSlugFromSnake
to [StringUtils]. - Using psr4 to load
src
andtests
now.
- [HashtagUtils] Fix bug where generated hashtag might contain invalid chars.
- Rename composer package to
gdbots/common
.
- [GeneratesIdentifier], [Identifier] Return
static
on phpdoc for better IDE support. - bug [StringIdentifier], [UuidIdentifier] Equals method to use
==
instead of comparing strings as those don't taken into account different types/classes. - Adds [SlugUtils], [HashtagUtils], [SlugIdentifier] and [DatedSlugIdentifier].
- Set all Util classes to final and disabled constructor as these should not be extended or instantiated.
- Initial version.