Page MenuHomePhabricator

Fix some PHP 7.4 array index access issues
ClosedPublic

Authored by epriestley on Apr 26 2020, 3:30 PM.
Tags
None
Referenced Files
F14770805: D21172.id50413.diff
Thu, Jan 23, 9:34 PM
F14767893: D21172.diff
Thu, Jan 23, 6:25 PM
Unknown Object (File)
Wed, Jan 22, 7:52 AM
Unknown Object (File)
Wed, Jan 22, 1:17 AM
Unknown Object (File)
Fri, Jan 17, 1:28 AM
Unknown Object (File)
Thu, Jan 9, 1:54 PM
Unknown Object (File)
Sat, Jan 4, 10:46 AM
Unknown Object (File)
Sat, Jan 4, 2:32 AM
Subscribers
None

Details

Summary

Ref T13518. See https://discourse.phabricator-community.org/t/more-exceptions-when-viewing-diffs/3789/. Under PHP 7.4, accessing an array index of values like false and null is no longer valid. This is great, but we occasionally do it.

Test Plan
  • Upgraded to PHP 7.4.
  • Loaded revisions with added/changed lines, inlines, and Asana support configured.
  • Before patch: saw various fatals around accessing indexes of booleans and nulls.
  • After patch: clean revision.

Diff Detail

Repository
rP Phabricator
Branch
php74
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24232
Build 33375: Run Core Tests
Build 33374: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 26 2020, 3:35 PM
This revision was automatically updated to reflect the committed changes.