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
F19064064: D21172.id50413.diff
Sat, Nov 29, 8:09 PM
F18985457: D21172.id50413.diff
Mon, Nov 17, 1:03 PM
F18818951: D21172.diff
Oct 22 2025, 3:30 AM
F18817120: D21172.diff
Oct 21 2025, 12:38 PM
F18814092: D21172.id.diff
Oct 20 2025, 9:29 PM
F18808811: D21172.diff
Oct 19 2025, 8:48 AM
F18776262: D21172.id50416.diff
Oct 10 2025, 9:33 PM
F18776055: D21172.diff
Oct 10 2025, 9:04 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.