mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-11 21:49:34 +00:00
Fixed static analysis issues.
This commit is contained in:
parent
aa719ab79a
commit
0d0a04c36f
7 changed files with 13 additions and 8 deletions
|
|
@ -13,7 +13,8 @@ class BooleanConstraint extends AbstractConstraint
|
|||
|
||||
public function __construct(string $property, string $identifier = null, ?bool $default_value = null)
|
||||
{
|
||||
parent::__construct($property, $identifier, $default_value);
|
||||
parent::__construct($property, $identifier);
|
||||
$this->value = $default_value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use App\Services\Trees\NodesListBuilder;
|
|||
use Doctrine\ORM\QueryBuilder;
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @template T of AbstractDBElement
|
||||
*/
|
||||
class EntityConstraint extends AbstractConstraint
|
||||
{
|
||||
|
|
@ -16,7 +16,7 @@ class EntityConstraint extends AbstractConstraint
|
|||
private const ALLOWED_OPERATOR_VALUES_STRUCTURAL = ['INCLUDING_CHILDREN', 'EXCLUDING_CHILDREN'];
|
||||
|
||||
/**
|
||||
* @var
|
||||
* @var NodesListBuilder
|
||||
*/
|
||||
protected $nodesListBuilder;
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ class EntityConstraint extends AbstractConstraint
|
|||
|
||||
/**
|
||||
* @param NodesListBuilder|null $nodesListBuilder
|
||||
* @param class-string $class
|
||||
* @param class-string<T> $class
|
||||
* @param string $property
|
||||
* @param string|null $identifier
|
||||
* @param null $value
|
||||
|
|
@ -80,7 +80,7 @@ class EntityConstraint extends AbstractConstraint
|
|||
}
|
||||
|
||||
/**
|
||||
* @return mixed|null
|
||||
* @return T|null
|
||||
*/
|
||||
public function getValue(): ?AbstractDBElement
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue