mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -47,12 +47,9 @@ class ProjectBOMEntry extends AbstractDBElement
|
|||
{
|
||||
use TimestampTrait;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
*/
|
||||
#[Assert\Positive]
|
||||
#[ORM\Column(type: Types::FLOAT, name: 'quantity')]
|
||||
protected float $quantity;
|
||||
protected float $quantity = 1.0;
|
||||
|
||||
/**
|
||||
* @var string A comma separated list of the names, where this parts should be placed
|
||||
|
@ -71,7 +68,7 @@ class ProjectBOMEntry extends AbstractDBElement
|
|||
* @var string An optional comment for this BOM entry
|
||||
*/
|
||||
#[ORM\Column(type: Types::TEXT)]
|
||||
protected string $comment;
|
||||
protected string $comment = '';
|
||||
|
||||
/**
|
||||
* @var Project|null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue