Skip to content

Commit

Permalink
fixup! fix(utility): De- deprecate getDateTime as now() only returns …
Browse files Browse the repository at this point in the history
…immutable objects This will mean lots of code like ```$dateTime = (new DateTime())->setTimestamp(ITimeFactory::now()->getTimestamp()``` if a regular DateTime object is needed
  • Loading branch information
miaulalala committed Aug 25, 2023
1 parent 10c7622 commit 1989abc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/public/AppFramework/Utility/ITimeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1989abc

Please sign in to comment.