mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 15:06:06 +00:00
type fixes
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user