Page MenuHomePhorge

Fix RuntimeException: min(): Array must contain at least one element
ClosedPublic

Authored by aklapper on Aug 22 2023, 09:09.
Tags
None
Referenced Files
F2912725: D25417.1737413611.diff
Sun, Jan 19, 22:53
F2912724: D25417.1737413610.diff
Sun, Jan 19, 22:53
F2912723: D25417.1737413609.diff
Sun, Jan 19, 22:53
F2912722: D25417.1737413608.diff
Sun, Jan 19, 22:53
F2912721: D25417.1737413607.diff
Sun, Jan 19, 22:53
F2908500: D25417.1737379233.diff
Sun, Jan 19, 13:20
F2904956: D25417.1737337877.diff
Sun, Jan 19, 01:51
F2899346: D25417.1737261494.diff
Sat, Jan 18, 04:38

Details

Summary

Make sure that $epochs[] is never empty but contains 0 so min($epochs) will not complain.

Closes T15623

Test Plan

Carefully read the code (as I am unaware of reproduction steps).

Diff Detail

Repository
rP Phorge
Branch
T15623min (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 798
Build 798: arc lint + arc unit

Event Timeline

Obviously not a clean tree, sorry. Thus ran arc liberate, now arc asked whether to include unstaged changes in src/__phutil_library_map__.php (yes)

and that's now wrong because src/__phutil_library_map__.php includes a non-existing file though I had ran git stash. I love git...

Try again, after an rm and arc liberate on master, and then a git rebase master on this branch

This revision is now accepted and ready to land.Aug 22 2023, 09:27