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
F3553157: D25417.1744921990.diff
Wed, Apr 16, 20:33
F3521524: D25417.1744815566.diff
Tue, Apr 15, 14:59
F3517764: D25417.1744810842.diff
Tue, Apr 15, 13:40
F3471327: D25417.1744749120.diff
Mon, Apr 14, 20:32
F3372875: D25417.1744253150.diff
Wed, Apr 9, 02:45
F3372691: D25417.1744250906.diff
Wed, Apr 9, 02:08
F3371264: D25417.1744240232.diff
Tue, Apr 8, 23:10
F3371263: D25417.1744240216.diff
Tue, Apr 8, 23:10

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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