Skip to content

Commit

Permalink
Fix deprecation warnings in PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumarar authored Nov 28, 2024
1 parent cf8a190 commit 6506d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DotEnv
*/
protected array $processors = [];

public function __construct(string $path, array $processors = null)
public function __construct(string $path, ?array $processors = null)
{
if (!file_exists($path)) {
throw new InvalidArgumentException(sprintf('%s does not exist', $path));
Expand Down Expand Up @@ -66,7 +66,7 @@ public function load(): void
}
}

private function setProcessors(array $processors = null): void
private function setProcessors(?array $processors = null): void
{
/**
* Fill with default processors
Expand Down

0 comments on commit 6506d1d

Please sign in to comment.