if (false ===
$mode =
$this->mode
) { $mode =
$_SERVER['SYMFONY_DEPRECATIONS_HELPER'
] ??
$_ENV['SYMFONY_DEPRECATIONS_HELPER'
] ??
getenv('SYMFONY_DEPRECATIONS_HELPER'
);
} if ('strict' ===
$mode) { return $this->configuration = Configuration::
inStrictMode();
} if (self::MODE_DISABLED ===
$mode) { return $this->configuration = Configuration::
inDisabledMode();
} if ('weak' ===
$mode) { return $this->configuration = Configuration::
inWeakMode();
} if (isset($mode[0
]) && '/' ===
$mode[0
]) { return $this->configuration = Configuration::
fromRegex($mode);
} if (preg_match('/^[1-9][0-9]*$/',
(string) $mode)) { return $this->configuration = Configuration::
fromNumber($mode);
} if (!
$mode) { return $this->configuration = Configuration::
fromNumber(0
);
}