From b95ae42ace7f955bb1c0bab7f427283d8852044d Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 1 Feb 2024 22:44:58 +0100 Subject: [PATCH] phpstan level 3 --- phpstan.neon | 2 +- tools/news_preview.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index b2e8efb0..1a8fea94 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ parameters: - level: 2 + level: 3 paths: - . - templates/tibiacom diff --git a/tools/news_preview.php b/tools/news_preview.php index 7193b94d..dd53987c 100644 --- a/tools/news_preview.php +++ b/tools/news_preview.php @@ -67,6 +67,9 @@ if(isset($_GET['title'], $_GET['body'], $_GET['player_id'], $_GET['category'], $ ); foreach($tickers as &$ticker) { + /** + * @var array $ticker + */ $ticker['icon'] = $categories[$ticker['category']]['icon_id']; $ticker['body_short'] = short_text(strip_tags($ticker['body']), 100); $ticker['hidden'] = $ticker['hide'];