Skip to content

Commit 2c8379d

Browse files
committed
compare keys
1 parent 75059d6 commit 2c8379d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Checks/ExampleEnvironmentVariablesAreSet.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private function checkForDotEnvV4(): bool
6161
$actual = Dotenv::createImmutable(base_path(), '.env');
6262

6363
$this->envVariables = Collection::make($examples->safeLoad())
64-
->diff($actual->safeLoad());
64+
->diffKeys($actual->safeLoad())
65+
->keys();
6566

6667
return $this->envVariables->isEmpty();
6768
}

src/Checks/ExampleEnvironmentVariablesAreUpToDate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ private function checkForDotEnvV4(): bool
6161
$actual = Dotenv::createImmutable(base_path(), '.env');
6262

6363
$this->envVariables = Collection::make($actual->safeLoad())
64-
->diff($examples->safeLoad());
64+
->diffKeys($examples->safeLoad())
65+
->keys();
6566

6667
return $this->envVariables->isEmpty();
6768
}

0 commit comments

Comments
 (0)