Page MenuHomePhabricator

Add "random_int" and "random_bytes" as builtins so the linter stops complaining about them
ClosedPublic

Authored by epriestley on Feb 20 2019, 10:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 30, 8:12 AM
Unknown Object (File)
Sat, Dec 28, 1:58 PM
Unknown Object (File)
Sun, Dec 22, 2:16 AM
Unknown Object (File)
Sat, Dec 14, 3:59 PM
Unknown Object (File)
Wed, Dec 11, 7:06 PM
Unknown Object (File)
Thu, Dec 5, 10:15 PM
Unknown Object (File)
Oct 7 2024, 11:09 PM
Unknown Object (File)
Sep 27 2024, 11:28 PM
Subscribers
None

Details

Summary

There's a "right" way to do this by regenerating this file from PHPCompatInfo, but that requires installing composer and a whole lot of legwork. For now, I think we only actually care about these two functions, so I just added them manually.

Test Plan

On PHP7, ran arc lint on Filesystem.php and got no warnings. This change should also stop us from getting warnings on earlier versions of PHP.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable