Page MenuHomeDevCentral

Refactor DateStamp with constructor property promotion
AcceptedPublic

Authored by dereckson on Apr 18 2026, 11:56.
Tags
None
Referenced Files
F33632206: D4076.diff
Sat, Jun 20, 01:57
Unknown Object (File)
Fri, Jun 19, 02:34
Unknown Object (File)
Thu, Jun 18, 12:10
Unknown Object (File)
Thu, Jun 18, 06:05
Unknown Object (File)
Thu, Jun 18, 03:35
Unknown Object (File)
Thu, Jun 18, 02:16
Unknown Object (File)
Wed, Jun 17, 13:28
Unknown Object (File)
Wed, Jun 17, 06:41
Subscribers

Details

Reviewers
dereckson

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
Tests Passed
Branch
follow-up-for-doc-ii
Build Status
Buildable 6708
Build 6996: arc lint + arc unit

Event Timeline

dereckson created this revision.

The refactor looks good, but Harbormaster reports unit test fails in:

  • omnitools/tests/DateTime/DateStampTest.php
  • omnitools/tests/Reflection/CodeClassTest.php

And fromUnixTime() changed from accepting a nullable/default argument to requiring an int, with now() replacing the no-argument usage.
Could you confirm all no-argument fromUnixTime() calls have been migrated, and fix or explain the failing unit tests?

For reference, to launch unit tests from Arcanist was broken as Xdebug was invoked without code coverage support.

https://github.com/nasqueron/arcanist/commit/2287f8768605272aba2544fa9f4192623f7d05ae fixed the issue.

This revision is now accepted and ready to land.Sun, Jun 7, 09:41