Skip to content

Commit

Permalink
Use lower level access call to try to bypass Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 17, 2024
1 parent 27e5202 commit c3edbb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/framework/src/Framework/Services/BuildService.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Hyde\Hyde;
use Hyde\Foundation\Facades\Routes;
use Hyde\Foundation\Kernel\PageCollection;
use Hyde\Foundation\Kernel\RouteCollection;
use Hyde\Framework\Actions\StaticPageBuilder;
use Hyde\Framework\Concerns\InteractsWithDirectories;
Expand Down Expand Up @@ -87,7 +88,7 @@ protected function getClassPluralName(string $pageClass): string
/** @return array<class-string<\Hyde\Pages\Concerns\HydePage>> */
protected function getPageTypes(): array
{
return Hyde::pages()->map(function (HydePage $page): string {
return PageCollection::getPages()->map(function (HydePage $page): string {
return $page::class;
})->unique()->values()->toArray();
}
Expand Down

0 comments on commit c3edbb6

Please sign in to comment.