From be36b21e2b30789b4733fca2adaaa765c36506d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20B=C3=A9rub=C3=A9?= Date: Sun, 10 May 2020 11:49:44 -0600 Subject: [PATCH] fix type hints --- src/Config/ConfigResolver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Config/ConfigResolver.php b/src/Config/ConfigResolver.php index ecf4ce9..f779553 100644 --- a/src/Config/ConfigResolver.php +++ b/src/Config/ConfigResolver.php @@ -42,7 +42,7 @@ class ConfigResolver * @throws CannotParseConfigException * @throws RuntimeException */ - public function resolve(string $dir = null): Config + public function resolve(?string $dir = null): Config { try { return $this->attemptResolvingConfigFromEnvironment(); @@ -90,7 +90,7 @@ protected function attemptResolvingConfigFromEnvironment(): Config * @throws CannotParseConfigException * @throws RuntimeException */ - protected function attemptResolvingConfigFromSupportedFormats(string $dir = null): Config + protected function attemptResolvingConfigFromSupportedFormats(?string $dir = null): Config { $dir = $dir ?? getcwd(); $basePath = $dir . DIRECTORY_SEPARATOR . self::CONFIG_FILENAME;