mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Fixed PHPstan issues
This commit is contained in:
parent
8a13799829
commit
78a6262665
2 changed files with 1 additions and 4 deletions
|
@ -40,9 +40,6 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
||||||
#[ORM\MappedSuperclass(repositoryClass: AbstractPartsContainingRepository::class)]
|
#[ORM\MappedSuperclass(repositoryClass: AbstractPartsContainingRepository::class)]
|
||||||
abstract class AbstractPartsContainingDBElement extends AbstractStructuralDBElement
|
abstract class AbstractPartsContainingDBElement extends AbstractStructuralDBElement
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var Collection|ArrayCollection The parameters of this element
|
|
||||||
*/
|
|
||||||
#[Groups(['full'])]
|
#[Groups(['full'])]
|
||||||
protected Collection $parameters;
|
protected Collection $parameters;
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ class MeasurementUnit extends AbstractPartsContainingDBElement
|
||||||
|
|
||||||
#[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]
|
#[ORM\ManyToOne(targetEntity: self::class, inversedBy: 'children')]
|
||||||
#[ORM\JoinColumn(name: 'parent_id')]
|
#[ORM\JoinColumn(name: 'parent_id')]
|
||||||
#[Groups('measurement_unit:read', 'measurement_unit:write')]
|
#[Groups(['measurement_unit:read', 'measurement_unit:write'])]
|
||||||
#[ApiProperty(readableLink: false, writableLink: false)]
|
#[ApiProperty(readableLink: false, writableLink: false)]
|
||||||
protected ?AbstractStructuralDBElement $parent = null;
|
protected ?AbstractStructuralDBElement $parent = null;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue