type fixes

This commit is contained in:
Yuri Kuznetsov
2022-03-07 13:50:53 +02:00
parent 98022fdb79
commit 3e021cd3aa
3 changed files with 13 additions and 9 deletions

View File

@@ -29,6 +29,10 @@
namespace Espo\Core\Templates\Repositories;
/**
* @template TEntity of \Espo\Core\Entities\CategoryTreeItem
* @extends \Espo\Core\Repositories\CategoryTree<TEntity>
*/
class CategoryTree extends \Espo\Core\Repositories\CategoryTree
{

View File

@@ -31,28 +31,28 @@ namespace Espo\Core\Templates\SelectManagers;
class Event extends \Espo\Core\Select\SelectManager
{
protected $selectAttributesDependancyMap = [
protected $selectAttributesDependancyMap = [ /** @phpstan-ignore-line */
'duration' => [
'dateStart',
'dateEnd',
],
];
protected function filterPlanned(&$result)
protected function filterPlanned(&$result) /** @phpstan-ignore-line */
{
$result['whereClause'][] = [
'status' => 'Planned'
];
}
protected function filterHeld(&$result)
protected function filterHeld(&$result) /** @phpstan-ignore-line */
{
$result['whereClause'][] = [
'status' => 'Held'
];
}
protected function filterTodays(&$result)
protected function filterTodays(&$result) /** @phpstan-ignore-line */
{
$result['whereClause'][] = $this->convertDateTimeWhere([
'type' => 'today',

View File

@@ -32,29 +32,29 @@ namespace Espo\Core\Traits;
/** @deprecated */
trait Injectable
{
protected $injections = [];
protected $injections = []; /** @phpstan-ignore-line */
public function inject($name, $object)
{
$this->injections[$name] = $object;
}
public function getDependencyList() : array
public function getDependencyList() : array /** @phpstan-ignore-line */
{
return $this->dependencyList;
}
protected function getInjection(string $name)
protected function getInjection(string $name) /** @phpstan-ignore-line */
{
return $this->injections[$name] ?? $this->$name ?? null;
}
protected function addDependency(string $name)
protected function addDependency(string $name) /** @phpstan-ignore-line */
{
$this->dependencyList[] = $name;
}
protected function addDependencyList(array $list)
protected function addDependencyList(array $list) /** @phpstan-ignore-line */
{
foreach ($list as $item) {
$this->addDependency($item);