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
F3332787: D25417.1743526303.diff
Mon, Mar 31, 16:51
F3331775: D25417.1743512808.diff
Mon, Mar 31, 13:06
F3329920: D25417.1743481803.diff
Mon, Mar 31, 04:30
F3327411: D25417.1743439134.diff
Sun, Mar 30, 16:38
F3323584: D25417.1743386722.diff
Sun, Mar 30, 02:05
F3318127: D25417.1743274863.diff
Fri, Mar 28, 19:01
F3317757: D25417.1743267025.diff
Fri, Mar 28, 16:50
F3312520: D25417.1743211715.diff
Fri, Mar 28, 01:28

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 800
Build 800: 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