Skip to content

Commit

Permalink
fix type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed May 10, 2020
1 parent ac0214a commit be36b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config/ConfigResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit be36b21

Please sign in to comment.