Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6506d1d

Browse files
Fix deprecation warnings in PHP 8.4
1 parent cf8a190 commit 6506d1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/DotEnv.php

Lines changed: 2 additions & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /