Revert "make phpstan happy"

This reverts commit deb441e9e3.
This commit is contained in:
Andrew Dolgov 2023-10-23 23:39:21 +03:00
parent deb441e9e3
commit 994f376f42
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

0
utils/phpstan-watcher.sh Executable file → Normal file
View File