Add enum for view type and fix some type hints

This commit is contained in:
Alex Cabal 2024-05-08 11:17:53 -05:00
parent 7c8463d297
commit 8cc661015c
10 changed files with 20 additions and 30 deletions

View file

@ -6,9 +6,12 @@ use Safe\DateTimeImmutable;
* @property ?string $UrlName
* @property ?string $Url
* @property ?array<string> $AlternateNames
* @property ?array<string> $_AlternateNames
*/
class Artist{
/**
* @var array<string> $_AlternateNames
*/
use Traits\Accessor;
public ?int $ArtistId = null;
@ -18,7 +21,7 @@ class Artist{
protected ?int $_DeathYear = null;
protected ?string $_UrlName = null;
protected ?string $_Url = null;
protected ?array $_AlternateNames = null;
protected $_AlternateNames = null; // Don't type hint this here, otherwise PHPStan will complain
// *******
// SETTERS