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)
Tue, Mar 12, 1:20 AM
Unknown Object (File)
Feb 21 2024, 12:16 PM
Unknown Object (File)
Feb 13 2024, 3:03 PM
Unknown Object (File)
Feb 9 2024, 3:45 AM
Unknown Object (File)
Feb 2 2024, 6:18 AM
Unknown Object (File)
Dec 30 2023, 7:10 PM
Unknown Object (File)
Dec 27 2023, 1:09 PM
Unknown Object (File)
Dec 27 2023, 1:09 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