Page MenuHomePhabricator

Make the "result" property on Future private
ClosedPublic

Authored by epriestley on Feb 26 2020, 8:29 PM.
Tags
None
Referenced Files
F18806962: D21034.diff
Sat, Oct 18, 10:14 PM
F18787203: D21034.diff
Tue, Oct 14, 10:32 PM
F18781976: D21034.id50140.diff
Mon, Oct 13, 12:13 AM
F18781912: D21034.id50104.diff
Mon, Oct 13, 12:02 AM
F18781152: D21034.diff
Sun, Oct 12, 9:45 PM
F18608798: D21034.id.diff
Sep 14 2025, 2:02 AM
F18606789: D21034.diff
Sep 13 2025, 10:36 PM
F18601797: D21034.id50140.diff
Sep 13 2025, 1:31 PM
Subscribers

Details

Summary

Depends on D21033. Ref T11968. This is just an incremental step in modernizing Future and making it more robust. Currently, subclasses are expected to write directly to $this->result, but this isn't consistent with how modern classes generally work.

Test Plan

Ran unit tests, created this revision.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 29 2020, 5:18 PM
This revision was automatically updated to reflect the committed changes.
artms added inline comments.
src/future/Future.php
103
103
PHP Fatal error:  Cannot override final method Future::getResult() in /core/data/drydock/workingcopy-75/repo/phabricator/src/applications/harbormaster/future/HarbormasterExecFuture.php on line 50