fix: type hint

This commit is contained in:
HDVinnie
2022-01-08 16:37:19 -05:00
parent ebb5b72c2b
commit ee32debd2a
2 changed files with 1 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class TopicController extends Controller
/**
* Show The Topic.
*/
public function topic(Topic $id, string $page = '', string $post = ''): \Illuminate\Contracts\View\Factory|\Illuminate\View\View|\Illuminate\Http\RedirectResponse
public function topic(int $id, string $page = '', string $post = ''): \Illuminate\Contracts\View\Factory|\Illuminate\View\View|\Illuminate\Http\RedirectResponse
{
// Find the topic
$topic = Topic::findOrFail($id);