Skip to content

Fix PHP 8.4 deprecation: use explicit nullable type for $fileEncoding - #15

Open
johanvdr-prog wants to merge 1 commit into
dotenv-org:masterfrom
johanvdr-prog:fix/php84-implicit-nullable-params
Open

johanvdr-prog wants to merge 1 commit into
dotenv-org:masterfrom
johanvdr-prog:fix/php84-implicit-nullable-params

Conversation

@johanvdr-prog

Copy link
Copy Markdown

PHP 8.4 deprecates implicitly nullable parameter types (e.g. string $param = null). The explicit form ?string $param = null must be used instead or a deprecation warning is emitted.

This affects five factory methods in src/DotenvVault.php: create(), createMutable(), createUnsafeMutable(), createImmutable(), and createUnsafeImmutable().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant