Skip to content

Commit ba634c0

Browse files
authored
Minor improvements (#11)
1 parent 4fb9c0d commit ba634c0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ vendor
55
coverage
66
phpunit.xml
77
.php-cs-fixer.cache
8+
.phpunit.result.cache

src/DotenvEditor.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ public function has($key)
138138

139139
public function __destruct()
140140
{
141-
if ($this->envFile) {
142-
$this->envFile->close();
143-
}
141+
$this->envFile?->close();
144142
}
145143

146144
/**

0 commit comments

Comments
 (0)