Page MenuHomePhabricator

FlowHooks::onGetUserPermissionsErrors inconsistent returns
Open, Needs TriagePublic

Description

FlowHooks::onGetUserPermissionsErrors uses return; and return false;

Feels inconsistent...

Caller:

		// Check getUserPermissionsErrors hook
		if ( !Hooks::run( 'getUserPermissionsErrors', [ &$title, &$user, $action, &$result ] ) ) {
			$errors = $this->resultToError( $errors, $result );
		}