User Details
- User Since
- Jan 10 2021, 9:44 PM (205 w, 6 d)
- Availability
- Available
Mar 20 2021
I stumbled across its mention in the Arcanist Quick Start doc whilst setting up a new machine today so went to write a patch before realising that you'd just fixed this a few days ago. Is it expected that Diviner has yet to update?
Jan 11 2021
Rebased patch series
Rebased patch series
Rebased patch series
Catch Throwable in the test rather than converting to Exception inside phutil_utf8_convert
Ah even better.
https://3v4l.org/eYFoc does work for 5.2.2+ to pass by reference, provided which arguments are passed by reference is part of the contract. But probably best to keep it simple and define xsprintf_test_callback as you say.
Stay under 80 characters (and format the other long preg_match a bit more nicely)
Hm, Harbormaster is failing with:
Fatal error: Call to undefined function ArcanistFormattedStringXHPASTLinterRule::processXsprintfCallback() in /core/data/drydock/workingcopy-70/repo/arcanist/src/xsprintf/xsprintf.php on line 70
Does referencing static functions not work in old PHP versions or something? I tested with 7.4 and it was fine.
With the four revisions I've just added, arc lint works with PHP 8 when run inside the arcanist repo, and arc unit --everything has no regressions compared with PHP 7.4 (both do have a few failures but they're the same and relate to pyflakes/jshint/hg, and look environment-specific so nothing to do with PHP 8).
Trivially rebased for landing
Jan 10 2021
In trying to arc diff --update this I got an exception (but it worked with --head, which I had been using to submit each commit of the patch series). What's the best way to test out arc itself and reproduce that? Use admin.phacility.com to get a testing instance?
Suppress deprecation warning with @ rather than skip the function call.