Skip to content

Commit 896b6b1

Browse files
Merge pull request #8 from jaumarar/main
Fix deprecation warnings in PHP 8.4
2 parents cf8a190 + 6506d1d commit 896b6b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DotEnv.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DotEnv
2626
*/
2727
protected array $processors = [];
2828

29-
public function __construct(string $path, array $processors = null)
29+
public function __construct(string $path, ?array $processors = null)
3030
{
3131
if (!file_exists($path)) {
3232
throw new InvalidArgumentException(sprintf('%s does not exist', $path));
@@ -66,7 +66,7 @@ public function load(): void
6666
}
6767
}
6868

69-
private function setProcessors(array $processors = null): void
69+
private function setProcessors(?array $processors = null): void
7070
{
7171
/**
7272
* Fill with default processors

0 commit comments

Comments
 (0)