The trait Leonidas\Library\System\...tracts\ExpectsPostTrait requires the property $ID which is not provided by Leonidas\Library\System\...ost\Policies\PostPolicy.
Loading history...
12
13
/**
14
* @var int[]
15
*/
16
protected array $posts = [];
17
18
public function __construct(int ...$posts)
19
{
20
$this->posts = $posts;
21
}
22
23
/**
24
* Get the value of posts
25
*
26
* @return int[]
27
*/
28
public function getPosts(): array
29
{
30
return $this->posts;
31
}
32
33
public function approvesRequest(ServerRequestInterface $request): bool