Skip to content

Commit

Permalink
fix(chore): resolve problem of typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdugue authored Oct 30, 2024
1 parent eb32e3c commit bc6b120
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Entity/ContentLibraries.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class ContentLibraries
#[ORM\Column(name: "dependency_type", type: "string", length: 31)]

/**
* @var int|null
* @var null|string
*/
private ?string $dependencyType;
private null|string $dependencyType;

#[ORM\Column(name: "drop_css", type: "boolean", length: 1)]
/**
Expand Down Expand Up @@ -82,15 +82,15 @@ public function setLibrary($library): self
/**
* @return int
*/
public function getDependencyType(): ?int
public function getDependencyType(): ?string

Check failure on line 85 in Entity/ContentLibraries.php

View workflow job for this annotation

GitHub Actions / build-test

PHPDoc tag @return with type int is incompatible with native type string|null.
{
return $this->dependencyType;
}
/**
* @param int|null $dependencyType
* @param null|int|string $dependencyType
* @return self
*/
public function setDependencyType(?int $dependencyType): self
public function setDependencyType(?string $dependencyType): self

Check failure on line 93 in Entity/ContentLibraries.php

View workflow job for this annotation

GitHub Actions / build-test

PHPDoc tag @param for parameter $dependencyType with type int|string|null is not subtype of native type string|null.
{
$this->dependencyType = $dependencyType;
return $this;
Expand Down

0 comments on commit bc6b120

Please sign in to comment.