https://note.com/dotinstall/n/nc0feca3bda82
$posts[0] = new Post('hello'); $posts[1] = new Post('hello again'); $posts[2] = new SponsoredPost('hello hello', 'dotinstall'); function processPost(Post $post) { $post->show();
のところの Post 型をやる理由がわかりません。
この回答を見るにはプレミアムプランへの登録が必要です