This commit is contained in:
Yuri Kuznetsov
2023-04-28 16:26:07 +03:00
parent 83b60e49c6
commit a822535537
7 changed files with 12 additions and 18 deletions
@@ -30,13 +30,9 @@
namespace Espo\Core\FieldProcessing\LinkMultiple;
use Espo\ORM\Entity;
use Espo\Core\ORM\Entity as CoreEntity;
use Espo\Core\{
FieldProcessing\Loader as LoaderInterface,
FieldProcessing\Loader\Params,
};
use Espo\Core\FieldProcessing\Loader as LoaderInterface;
use Espo\Core\FieldProcessing\Loader\Params;
use Espo\ORM\Defs as OrmDefs;
@@ -47,9 +43,7 @@ class ListLoader implements LoaderInterface
{
private OrmDefs $ormDefs;
/**
* @var array<string,string[]>
*/
/** @var array<string, string[]> */
private $fieldListCacheMap = [];
public function __construct(OrmDefs $ormDefs)
@@ -48,7 +48,7 @@ class Loader implements LoaderInterface
private OrmDefs $ormDefs;
/**
* @var array<string,string[]>
* @var array<string, string[]>
*/
private $fieldListCacheMap = [];
+3 -3
View File
@@ -103,15 +103,15 @@ class Params
*
* @param array{
* entityType?: string,
* where?: array<int,array<string,mixed>>,
* where?: array<int, array<string, mixed>>,
* ids?: ?string[],
* searchParams?: ?array<string,mixed>,
* searchParams?: ?array<string, mixed>,
* } $params
* @throws RuntimeException
*/
public static function fromRaw(array $params, ?string $entityType = null): self
{
/** @var array<string,mixed> $params */
/** @var array<string, mixed> $params */
$obj = new self();
@@ -407,7 +407,7 @@ class Converter
$output[$attribute] = $fieldDefs;
}
/** @var array<string,array<string,mixed>> $output */
/** @var array<string, array<string, mixed>> $output */
}
if (isset($fieldTypeMetadata['linkDefs'])) {
@@ -134,7 +134,7 @@ trait SelectingTrait
}
/**
* @param array<string,mixed> $params
* @param array<string, mixed> $params
*/
private static function validateRawParamsSelecting(array $params): void
{
+1 -1
View File
@@ -105,7 +105,7 @@ class EmailAccount extends Record implements
}
/**
* @return ?array<string,mixed>
* @return ?array<string, mixed>
* @throws Error
* @throws NoSmtp
* @internal Left for bc.
+2 -2
View File
@@ -40,12 +40,12 @@ class Data
private stdClass $values;
/**
* @var array<string,Action::*>
* @var array<string, Action::*>
*/
private array $actions;
/**
* @param array<string,Action::*> $actions
* @param array<string, Action::*> $actions
*/
private function __construct(stdClass $values, array $actions)
{