Fix invalid return values for void
Summary: Remove or correct wrong @return types in PHPDoc and/or correct wrong return values in methods. Test Plan: Run static code analysis; read code; check method in parent class and other callers, etc. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Differential Revision: https://we.phorge.it/D25979
This commit is contained in:
parent
44c7bfb42d
commit
c51002398d
|
@ -169,7 +169,7 @@ final class DrydockLeaseUpdateWorker extends DrydockWorker {
|
||||||
* acquire the lease.
|
* acquire the lease.
|
||||||
*
|
*
|
||||||
* @param DrydockLease $lease Requested lease.
|
* @param DrydockLease $lease Requested lease.
|
||||||
* @return void
|
* @return DrydockResource
|
||||||
* @task allocator
|
* @task allocator
|
||||||
*/
|
*/
|
||||||
private function executeAllocator(DrydockLease $lease) {
|
private function executeAllocator(DrydockLease $lease) {
|
||||||
|
|
|
@ -531,8 +531,6 @@ final class PhabricatorMetaMTAMail
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempt to deliver an email immediately, in this process.
|
* Attempt to deliver an email immediately, in this process.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function sendNow() {
|
public function sendNow() {
|
||||||
if ($this->getStatus() != PhabricatorMailOutboundStatus::STATUS_QUEUE) {
|
if ($this->getStatus() != PhabricatorMailOutboundStatus::STATUS_QUEUE) {
|
||||||
|
|
|
@ -34,8 +34,6 @@ final class PhabricatorPeopleUserEmailPHIDType
|
||||||
$email = $objects[$phid];
|
$email = $objects[$phid];
|
||||||
$handle->setName($email->getAddress());
|
$handle->setName($email->getAddress());
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,6 @@ final class PhabricatorSearchDocumentQuery
|
||||||
protected function nextPage(array $page) {
|
protected function nextPage(array $page) {
|
||||||
// We already updated the internal offset in `loadPage()` after loading
|
// We already updated the internal offset in `loadPage()` after loading
|
||||||
// results, so we do not need to make any additional state updates here.
|
// results, so we do not need to make any additional state updates here.
|
||||||
return $this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -794,7 +794,6 @@ abstract class PhabricatorCustomField extends Phobject {
|
||||||
* query.
|
* query.
|
||||||
* @param PhabricatorCursorPagedPolicyAwareQuery $query Query to constrain.
|
* @param PhabricatorCursorPagedPolicyAwareQuery $query Query to constrain.
|
||||||
* @param wild $value Constraint provided by the user.
|
* @param wild $value Constraint provided by the user.
|
||||||
* @return void
|
|
||||||
* @task appsearch
|
* @task appsearch
|
||||||
*/
|
*/
|
||||||
public function applyApplicationSearchConstraintToQuery(
|
public function applyApplicationSearchConstraintToQuery(
|
||||||
|
@ -818,7 +817,6 @@ abstract class PhabricatorCustomField extends Phobject {
|
||||||
* form.
|
* form.
|
||||||
* @param AphrontFormView $form The form to update.
|
* @param AphrontFormView $form The form to update.
|
||||||
* @param wild $value Value from the saved query.
|
* @param wild $value Value from the saved query.
|
||||||
* @return void
|
|
||||||
* @task appsearch
|
* @task appsearch
|
||||||
*/
|
*/
|
||||||
public function appendToApplicationSearchForm(
|
public function appendToApplicationSearchForm(
|
||||||
|
|
|
@ -48,7 +48,7 @@ final class PhabricatorCustomFieldList extends Phobject {
|
||||||
*
|
*
|
||||||
* @param PhabricatorCustomFieldInterface $object Object to read field values
|
* @param PhabricatorCustomFieldInterface $object Object to read field values
|
||||||
* for.
|
* for.
|
||||||
* @return void
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function readFieldsFromStorage(
|
public function readFieldsFromStorage(
|
||||||
PhabricatorCustomFieldInterface $object) {
|
PhabricatorCustomFieldInterface $object) {
|
||||||
|
|
|
@ -74,7 +74,6 @@ final class PhabricatorWorkerTriggerQuery
|
||||||
// (Before T13266, we raised an exception here, but since "nextPage()" is
|
// (Before T13266, we raised an exception here, but since "nextPage()" is
|
||||||
// now called even if we don't page we can't do that anymore. Just do
|
// now called even if we don't page we can't do that anymore. Just do
|
||||||
// nothing instead.)
|
// nothing instead.)
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function loadPage() {
|
protected function loadPage() {
|
||||||
|
|
|
@ -86,7 +86,6 @@ final class PhabricatorWorkerTrigger
|
||||||
* is the first execution.
|
* is the first execution.
|
||||||
* @param int $this_event Scheduled epoch of this execution. This may not be
|
* @param int $this_event Scheduled epoch of this execution. This may not be
|
||||||
* the same as the current time.
|
* the same as the current time.
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
public function executeTrigger($last_event, $this_event) {
|
public function executeTrigger($last_event, $this_event) {
|
||||||
return $this->getAction()->execute($last_event, $this_event);
|
return $this->getAction()->execute($last_event, $this_event);
|
||||||
|
|
Loading…
Reference in a new issue