Skip to content

Commit

Permalink
new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Mar 13, 2022
1 parent 84631fa commit 2ac3258
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [4.4.3] - 2022-03-13
### Fixed
- PHP 8.1 deprecation notice [#480]

## [4.4.2] - 2022-02-13
### Added
- Options to customize the CurlClient to perform http queries [#474].
Expand Down Expand Up @@ -176,7 +180,9 @@ Full library refactoring.
[#468]: https://github.com/oscarotero/Embed/issues/468
[#473]: https://github.com/oscarotero/Embed/issues/473
[#474]: https://github.com/oscarotero/Embed/issues/474
[#480]: https://github.com/oscarotero/Embed/issues/480

[4.4.3]: https://github.com/oscarotero/Embed/compare/v4.4.2...v4.4.3
[4.4.2]: https://github.com/oscarotero/Embed/compare/v4.4.1...v4.4.2
[4.4.1]: https://github.com/oscarotero/Embed/compare/v4.4.0...v4.4.1
[4.4.0]: https://github.com/oscarotero/Embed/compare/v4.3.5...v4.4.0
Expand Down
2 changes: 1 addition & 1 deletion src/ApiTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function time(string ...$keys): ?DateTime
$time = $this->str(...$keys);
$datetime = $time ? date_create($time) : null;

if (!$datetime && ctype_digit($time)) {
if (!$datetime && $time && ctype_digit($time)) {
$datetime = date_create_from_format('U', $time);
}

Expand Down

0 comments on commit 2ac3258

Please sign in to comment.