File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
+ ## [ 4.4.3] - 2022-03-13
9
+ ### Fixed
10
+ - PHP 8.1 deprecation notice [ #480 ]
11
+
8
12
## [ 4.4.2] - 2022-02-13
9
13
### Added
10
14
- Options to customize the CurlClient to perform http queries [ #474 ] .
@@ -176,7 +180,9 @@ Full library refactoring.
176
180
[ #468 ] : https://github.com/oscarotero/Embed/issues/468
177
181
[ #473 ] : https://github.com/oscarotero/Embed/issues/473
178
182
[ #474 ] : https://github.com/oscarotero/Embed/issues/474
183
+ [ #480 ] : https://github.com/oscarotero/Embed/issues/480
179
184
185
+ [ 4.4.3 ] : https://github.com/oscarotero/Embed/compare/v4.4.2...v4.4.3
180
186
[ 4.4.2 ] : https://github.com/oscarotero/Embed/compare/v4.4.1...v4.4.2
181
187
[ 4.4.1 ] : https://github.com/oscarotero/Embed/compare/v4.4.0...v4.4.1
182
188
[ 4.4.0 ] : https://github.com/oscarotero/Embed/compare/v4.3.5...v4.4.0
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function time(string ...$keys): ?DateTime
96
96
$ time = $ this ->str (...$ keys );
97
97
$ datetime = $ time ? date_create ($ time ) : null ;
98
98
99
- if (!$ datetime && ctype_digit ($ time )) {
99
+ if (!$ datetime && $ time && ctype_digit ($ time )) {
100
100
$ datetime = date_create_from_format ('U ' , $ time );
101
101
}
102
102
You can’t perform that action at this time.
0 commit comments