HomePhabricator

Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500

Description

Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500

Summary:
Calling 'Foo::bar' is only supported since PHP 7, whereas the array form
is supported since PHP 5.4, which is below our PHP 5.5 baseline.

Test Plan: No regressions under PHP 8 and snippet tested on 3v4l

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

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

Details

Provenance
jrtc27Authored on Mon, Jan 11, 4:40 AM
industryPushed on Mon, Jan 11, 4:40 AM
Reviewer
Blessed Reviewers
Differential Revision
D21505: Fix ArcanistFormattedStringXHPASTLinterRule on older PHP after D21500
Parents
rARC90ac9a2ff281: Fix ArcanistFormattedStringXHPASTLinterRule for PHP 8
Branches
Unknown
Tags
Unknown
Build Status
Buildable 24993
Build 34483: Run Core Tests