I fucked up :3
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace src;
|
||||
|
||||
use http\Exception\RuntimeException;
|
||||
|
||||
class View
|
||||
{
|
||||
|
||||
|
||||
@@ -6,6 +6,6 @@ class HomeData
|
||||
{
|
||||
public function __construct(
|
||||
public string $pageTitle,
|
||||
public array $posts // Or even better: public array|PostDTO[] $posts
|
||||
public array $posts
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user