Page MenuHomePhabricator

Fix PHP version check for function calls with static/variable functions
ClosedPublic

Authored by epriestley on Sep 10 2014, 8:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 8:35 PM
Unknown Object (File)
Sun, Nov 17, 8:14 AM
Unknown Object (File)
Tue, Oct 29, 8:17 PM
Unknown Object (File)
Oct 18 2024, 2:37 PM
Unknown Object (File)
Oct 17 2024, 1:17 AM
Unknown Object (File)
Oct 15 2024, 7:14 PM
Unknown Object (File)
Sep 30 2024, 4:10 AM
Unknown Object (File)
Sep 18 2024, 3:34 PM
Subscribers

Details

Summary

D10132 improved this check by eliminating some false postives, but assumes an n_FUNCTION_CALL always starts with n_SYMBOL_NAME. This is true for f(), but not true for C::m() or $v().

Test Plan

Added and ran unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Fix PHP version check for function calls with static/variable functions.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, joshuaspence.
This revision is now accepted and ready to land.Sep 10 2014, 8:53 PM
epriestley updated this revision to Diff 25171.

Closed by commit rARCe043d22afd26 (authored by @epriestley).