Skip to content

Conversation

@riasvdv
Copy link
Contributor

@riasvdv riasvdv commented Jul 26, 2025

Currently when extending Env with a custom adapter, the repository is not set to null, which can lead to the adapter not being used depending on when the adapter was registered.

This fixes the issue by setting the static::$repository variable to null like the enablePutenv() and disablePutenv() methods do.

Currently when extending `Env` with a custom adapter, the repository is not set to `null`, which can lead to the adapter not being used depending on when the adapter was registered.

This fixes the issue by setting the `static::$repository` variable to `null` like the `enablePutenv()` and `disablePutenv()` methods do.
@taylorotwell taylorotwell merged commit d5b1e5f into laravel:12.x Jul 26, 2025
62 checks passed
@riasvdv riasvdv deleted the patch-1 branch July 26, 2025 19:13
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.

2 participants