From 994f376f42cd0691f4dc73940057915ad2d4d9b9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 23 Oct 2023 23:39:21 +0300 Subject: Revert "make phpstan happy" This reverts commit deb441e9e31bb2fe015c131fafd9570b630b5bf7. --- classes/config.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'classes/config.php') diff --git a/classes/config.php b/classes/config.php index ed0a1321a..77795de7a 100644 --- a/classes/config.php +++ b/classes/config.php @@ -268,7 +268,6 @@ class Config { /** @var Db_Migrations|null $migrations */ private $migrations; - /** @var int $self_url_path_strip_dirs */ private static $self_url_path_strip_dirs = 0; public static function get_instance() : Config { @@ -479,7 +478,7 @@ class Config { (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'); } - static function strip_self_url_path_dirs(int $amount) : void { + static function strip_self_url_path_dirs($amount) { self::$self_url_path_strip_dirs = $amount; } -- cgit v1.2.3