Skip to content

Commit 2ac3258

Browse files
committed
new patch
1 parent 84631fa commit 2ac3258

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [4.4.3] - 2022-03-13
9+
### Fixed
10+
- PHP 8.1 deprecation notice [#480]
11+
812
## [4.4.2] - 2022-02-13
913
### Added
1014
- Options to customize the CurlClient to perform http queries [#474].
@@ -176,7 +180,9 @@ Full library refactoring.
176180
[#468]: https://github.com/oscarotero/Embed/issues/468
177181
[#473]: https://github.com/oscarotero/Embed/issues/473
178182
[#474]: https://github.com/oscarotero/Embed/issues/474
183+
[#480]: https://github.com/oscarotero/Embed/issues/480
179184

185+
[4.4.3]: https://github.com/oscarotero/Embed/compare/v4.4.2...v4.4.3
180186
[4.4.2]: https://github.com/oscarotero/Embed/compare/v4.4.1...v4.4.2
181187
[4.4.1]: https://github.com/oscarotero/Embed/compare/v4.4.0...v4.4.1
182188
[4.4.0]: https://github.com/oscarotero/Embed/compare/v4.3.5...v4.4.0

src/ApiTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function time(string ...$keys): ?DateTime
9696
$time = $this->str(...$keys);
9797
$datetime = $time ? date_create($time) : null;
9898

99-
if (!$datetime && ctype_digit($time)) {
99+
if (!$datetime && $time && ctype_digit($time)) {
100100
$datetime = date_create_from_format('U', $time);
101101
}
102102

0 commit comments

Comments
 (0)