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'];