Skip to content

Commit

Permalink
fix: Correct and specify PHPDoc array type
Browse files Browse the repository at this point in the history
  • Loading branch information
aragon999 committed Sep 3, 2024
1 parent c3b38ca commit 166a22f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CategoryStruct implements JsonSerializable
private $id;

/**
* @var array|string
* @var array<string, string>
*/
private $name;

Expand Down Expand Up @@ -67,15 +67,15 @@ public function setId($id)
}

/**
* @return array
* @return array<string, string>
*/
public function getName()
{
return $this->name;
}

/**
* @param array $name
* @param array<string, string> $name
*/
public function setName($name)
{
Expand Down

0 comments on commit 166a22f

Please sign in to comment.