Page MenuHomePhabricator

Make the "result" property on Future private
ClosedPublic

Authored by epriestley on Feb 26 2020, 8:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 11, 3:05 AM
Unknown Object (File)
Mon, Oct 28, 5:36 PM
Unknown Object (File)
Sun, Oct 27, 7:42 AM
Unknown Object (File)
Sun, Oct 27, 7:20 AM
Unknown Object (File)
Sun, Oct 27, 6:28 AM
Unknown Object (File)
Fri, Oct 25, 1:38 AM
Unknown Object (File)
Oct 18 2024, 3:24 AM
Unknown Object (File)
Oct 16 2024, 4:10 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
Branch
fx4
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23925
Build 32925: Run Core Tests
Build 32924: arc lint + arc unit

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