From 0317683155a3966830f3972fde1562087f65cf94 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:36:21 +0200 Subject: Add test and type hinting (#5087) * - Add test and type hinting - pass PhpStan Level 9 * fix dump * fix style * fix visibility * fix style * add test * add test * add test * add test * add test * Simplify * cleaning after test * remove space * fix style * use specific log file for test * Remarque's from Alkarex * A few more details --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/Log.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'app/Models/Log.php') diff --git a/app/Models/Log.php b/app/Models/Log.php index df2de72ac..72208513d 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -1,26 +1,29 @@ date; } - public function level() { + public function level(): string { return $this->level; } - public function info() { + public function info(): string { return $this->information; } - public function _date($date) { + public function _date(string $date): void { $this->date = $date; } - public function _level($level) { + public function _level(string $level): void { $this->level = $level; } - public function _info($information) { + public function _info(string $information): void { $this->information = $information; } } -- cgit v1.2.3