HomePhabricator

Add "random_int" and "random_bytes" as builtins so the linter stops complaining…

Description

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

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.

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20202

Details

Provenance
epriestleyAuthored on Feb 20 2019, 10:57 PM
epriestleyPushed on Feb 20 2019, 11:03 PM
Reviewer
amckinley
Differential Revision
D20202: Add "random_int" and "random_bytes" as builtins so the linter stops complaining about them
Parents
rPHUc6bd8315c188: Add milliseconds and microseconds to phutil_units
Branches
Unknown
Tags
Unknown
Build Status
Buildable 22094
Build 30181: Run Core Tests