Skip to content

Commit

Permalink
Merge pull request #10698 from notbakaneko/feature/wiki-renderer-decl…
Browse files Browse the repository at this point in the history
…are-fields

Add missing field declarations to Wiki Renderer class
  • Loading branch information
nanaya authored Nov 2, 2023
2 parents 9dffc09 + 2f2be52 commit 848f059
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions app/Libraries/Wiki/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,10 @@

use App\Models\Wiki\Page;

/**
* @property Page $page
* @property string $body
*/
abstract class Renderer
{
/**
* @param Page $page
* @param string $body
*/
public function __construct($page, $body)
public function __construct(protected Page $page, protected string $body)
{
$this->page = $page;
$this->body = $body;
}

/**
Expand Down

0 comments on commit 848f059

Please sign in to comment.