feat(appframework): ⌚ Make ITimeFactory extend \PSR\Clock\ClockInterface
Summary
- ITimeFactory now implements PSR-20: https://www.php-fig.org/psr/psr-20/#21-clockinterface
TODO
- [ ] 3rdparty https://github.com/nextcloud/3rdparty/pull/1262
- [ ] OCP update so Psalm can find the interface https://github.com/nextcloud-deps/ocp/pull/4
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [x] Tests (unit, integration, api and/or acceptance) are included
- [x] Screenshots before/after for front-end changes
- [x] Documentation (manuals or wiki) has been updated or is not required
- [x] Backports requested where applicable (ex: critical bugfixes)
Might or might not make sense to deprecate getTime right away.
Might or might not make sense to deprecate getTime right away.
Same for the getDateTime() I think
I would love to see this documented at https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/psr.html :)
Will do, after it's merged
Rebased, now that 7.4 is dropped
Dang, this slipped through. To preserve stability in OCP, I'm moving it to 27
Docs in https://github.com/nextcloud/server/issues/37039#issuecomment-1455724716 and https://github.com/nextcloud/documentation/pull/9722