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)
Fri, May 3, 2:43 AM
Unknown Object (File)
Mon, Apr 29, 2:16 PM
Unknown Object (File)
Sat, Apr 27, 8:55 AM
Unknown Object (File)
Thu, Apr 25, 5:15 PM
Unknown Object (File)
Wed, Apr 24, 10:23 PM
Unknown Object (File)
Sat, Apr 20, 5:08 PM
Unknown Object (File)
Thu, Apr 11, 10:33 PM
Unknown Object (File)
Thu, Apr 11, 7:33 AM
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