HomePhabricator

Fix error handler on PHP 8

Description

Fix error handler on PHP 8

Summary:
PHP 7.2.0 deprecated the 5th parameter and PHP 8 removed it, so stop
using it and provide a default value to avoid erroring with:

Too few arguments to function PhutilErrorHandler::handleError(), 4 passed and exactly 5 expected

Test Plan: Used to create this revision with PHP 8 on macOS

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: Korvin

Maniphest Tasks: T13588

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

Details

Provenance
jrtc27Authored on Jan 11 2021, 2:02 AM
industryPushed on Jan 11 2021, 2:02 AM
Reviewer
Blessed Reviewers
Differential Revision
D21498: Fix error handler on PHP 8
Parents
rARC930f7e117d81: Suppress PHP 8 deprecation warning in __arcanist_init_script__
Branches
Unknown
Tags
Unknown
Tasks
T13588: PHP 8 Compatibility
Build Status
Buildable 24982
Build 34472: Run Core Tests