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
F18776262: D21172.id50416.diff
Fri, Oct 10, 9:33 PM
F18776055: D21172.diff
Fri, Oct 10, 9:04 PM
F18734266: D21172.id.diff
Tue, Sep 30, 10:51 PM
F18632269: D21172.id.diff
Sep 16 2025, 5:31 PM
F18612760: D21172.diff
Sep 14 2025, 9:52 AM
F18519450: D21172.diff
Sep 5 2025, 4:57 PM
F18342854: D21172.diff
Aug 26 2025, 5:33 AM
F18342773: D21172.diff
Aug 26 2025, 5:11 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
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.