Skip to content

Commit

Permalink
fix: stan errors caused by View/Components/App.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorodriguesroque committed Nov 9, 2024
1 parent c046b73 commit 398b4e8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Models/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ class Project extends Model
'private' => 'boolean',
];

/**
* Get the boards for the project.
*
* @return HasMany<Board, $this>
*/
public function boards()
{
return $this->hasMany(Board::class)->orderBy('sort_order');
Expand Down
12 changes: 12 additions & 0 deletions app/View/Components/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,26 @@

class App extends Component
{
/**
* Collection of the projects to display.
*
* @var Collection<int, Project>
*/
public Collection $projects;
public string $brandColors;
public string $primaryColors;
public ?string $logo;

/**
* @var array{cssValue: string, urlValue: string}
*/
public array $fontFamily;
public bool $blockRobots = false;
public bool $userNeedsToVerify = false;

/**
* @param array<int, array{title: string, url: string}> $breadcrumbs
*/
public function __construct(public array $breadcrumbs = [])
{
$this->projects = Project::query()
Expand Down

0 comments on commit 398b4e8

Please sign in to comment.