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)
Sat, Apr 20, 5:08 PM
Unknown Object (File)
Thu, Apr 11, 10:33 PM
Unknown Object (File)
Thu, Apr 11, 7:33 AM
Unknown Object (File)
Sun, Apr 7, 11:09 PM
Unknown Object (File)
Sat, Mar 30, 9:51 PM
Unknown Object (File)
Sat, Mar 30, 9:02 AM
Unknown Object (File)
Feb 3 2024, 11:48 PM
Unknown Object (File)
Jan 17 2024, 1:49 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
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