phpdoc fixes

This commit is contained in:
Yuri Kuznetsov
2022-06-24 11:13:02 +03:00
parent 2ecfdc2d4b
commit 1d2f862d98
10 changed files with 12 additions and 14 deletions
-1
View File
@@ -170,7 +170,6 @@ class Admin
/**
* @return array<int,array{id:string,type:string,message:string}>
* @throws \Espo\Core\Exceptions\Error
*/
public function actionAdminNotificationList(): array
{
@@ -124,7 +124,6 @@ class Authentication
*
* Warning: This method can change the state of the object (by setting the `portal` prop.).
*
* @throws Forbidden
* @throws ServiceUnavailable
*/
public function login(AuthenticationData $data, Request $request, Response $response): Result
@@ -36,10 +36,11 @@ use Espo\Core\{
Authentication\Login\Data,
Authentication\Result,
Authentication\Helper\UserFinder,
Exceptions\Error,
Authentication\Result\FailReason,
};
use RuntimeException;
class Hmac implements Login
{
private $userFinder;
@@ -71,7 +72,7 @@ class Hmac implements Login
$secretKey = $this->apiKeyUtil->getSecretKeyForUserId($user->getId());
if (!$secretKey) {
throw new Error("No secret key for API user '" . $user->getId() . "'.");
throw new RuntimeException("No secret key for API user '" . $user->getId() . "'.");
}
$string = $request->getMethod() . ' ' . $request->getResourcePath();
@@ -164,7 +164,6 @@ abstract class Base
}
/**
* @throws Forbidden
* @return void;
* @deprecated
*/
+9 -1
View File
@@ -77,7 +77,7 @@ class Service
* Perform a mass action.
*
* @throws Forbidden
* @throws BadRequest
* @throws NotFound
*/
public function process(
string $entityType,
@@ -116,6 +116,10 @@ class Service
);
}
/**
* @throws Forbidden
* @throws NotFound
*/
public function getStatusData(string $id): stdClass
{
/** @var MassActionEntity|null $entity */
@@ -135,6 +139,10 @@ class Service
];
}
/**
* @throws Forbidden
* @throws NotFound
*/
public function subscribeToNotificationOnSuccess(string $id): void
{
/** @var MassActionEntity|null $entity */
@@ -64,7 +64,6 @@ class AdminNotificationManager
/**
* @return array<int,array{id:string,type:string,message:string}>
* @throws \Espo\Core\Exceptions\Error
*/
public function getNotificationList(): array
{
@@ -54,9 +54,6 @@ class TemplateFileManager
$this->fileReader = $fileReader;
}
/**
* @throws Error
*/
public function getTemplate(
string $type,
string $name,
@@ -53,7 +53,6 @@ class AdminNotifications implements
/**
* Job for checking a new version of EspoCRM.
* @throws \Espo\Core\Exceptions\Error
*/
public function jobCheckNewVersion(): void
{
@@ -97,7 +96,6 @@ class AdminNotifications implements
/**
* Job for checking a new version of installed extensions.
* @throws \Espo\Core\Exceptions\Error
*/
public function jobCheckNewExtensionVersion(): void
{
-1
View File
@@ -425,7 +425,6 @@ class App
}
/**
* @throws \Espo\Core\Exceptions\Error
* @todo Remove in 7.2. Move to another place. CLI command.
*/
public function jobPopulateArrayValues(): void
@@ -38,7 +38,6 @@ class BasePlusType implements Di\ConfigAware, Di\MetadataAware
/**
* @param array<string,mixed> $params
* @throws \Espo\Core\Exceptions\Error
*/
public function afterCreate(string $name, $params): void
{