From 793e32af8ef42f2e7c72b4c7a00b36e4706d0006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= <postmaster@greg0ire.fr> Date: Sat, 24 Mar 2018 17:32:03 +0100 Subject: [PATCH] Add some type hints It will help showing the issue with getId --- index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.md b/index.md index 1f2479c..a1fc942 100644 --- a/index.md +++ b/index.md @@ -135,12 +135,12 @@ class Article $this->content = $content; } - public function getId() + public function getId(): int { return $this->id; } - public function getContent() + public function getContent(): string { return $this->content; } -- GitLab