Merge pull request #39511 from nextcloud/fix/reverse-getDateTime-deprecation

fix(utility): De- deprecate getDateTime and getTime as now() only returns DateTimeImmutable
This commit is contained in:
Joas Schilling 2023-08-25 10:02:08 +02:00 committed by GitHub
commit 85ff1449d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,6 @@ interface ITimeFactory extends ClockInterface {
/**
* @return int the result of a call to time()
* @since 8.0.0
* @deprecated 26.0.0 {@see ITimeFactory::now()}
*/
public function getTime(): int;
@ -50,7 +49,6 @@ interface ITimeFactory extends ClockInterface {
* @param \DateTimeZone|null $timezone
* @return \DateTime
* @since 15.0.0
* @deprecated 26.0.0 {@see ITimeFactory::now()}
*/
public function getDateTime(string $time = 'now', \DateTimeZone $timezone = null): \DateTime;