Skip to content

Commit

Permalink
Evaluate compact call
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 23, 2024
1 parent 0a0a3af commit e78dd2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
use Hyde\Foundation\Facades\Routes;
use Hyde\Framework\Features\Blogging\Models\PostAuthor;

use function compact;

/**
* @experimental
*
Expand All @@ -28,7 +26,9 @@ class PostAuthorPage extends InMemoryPage

public function __construct(PostAuthor $author)
{
parent::__construct($author->username, compact('author'));
parent::__construct($author->username, [
'author' => $author,
]);
}

public function getBladeView(): string
Expand Down

0 comments on commit e78dd2e

Please sign in to comment.