This commit is contained in:
Pierre Rudloff 2020-09-27 15:53:53 +02:00
parent d38b1cd9aa
commit 8d15fbdda2
9 changed files with 25 additions and 21 deletions

View file

@ -185,7 +185,7 @@ class Config
*
* @return string
*/
public static function addHttpToFormat($format)
public static function addHttpToFormat(string $format)
{
$newFormat = [];
foreach (explode('/', $format) as $subformat) {
@ -279,7 +279,7 @@ class Config
* @return void
* @throws ConfigException
*/
public static function setFile($file)
public static function setFile(string $file)
{
if (is_file($file)) {
$options = Yaml::parse(strval(file_get_contents($file)));