You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix null-safety bugs, drop mixed types, drop Laravel 10, add test coverage
- readFile() could return false from a failed file_get_contents() where
string was promised; now guarded. update() silently wrote null to the
.env file if preg_replace() failed; now falls back to the original
content instead.
- set(), update(), setOrUpdate(), get(), and formatValue() now type
their value parameters as string|int|float|bool|null instead of mixed.
- Drop Laravel 10 support (minimum is now Laravel 11); bump PHPStan to
level 8 and rector.php to target the Laravel 11 floor.
- Add tests for getEnvFile() and the service provider's container
binding; expand ArchTest.php; rename ExampleTest.php to EnvEditorTest.php.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,19 @@
2
2
3
3
All notable changes to `env-editor-laravel` will be documented in this file.
4
4
5
-
## Unreleased
5
+
## v3.0.0 - 2026-07-21
6
+
7
+
### Fixed
8
+
-`readFile()` could return `false` from a failed `file_get_contents()` where `string` was promised; now guarded.
9
+
-`update()` silently wrote `null` to the `.env` file if `preg_replace()` failed (e.g. a PCRE backtrack-limit error); it now falls back to the original content instead.
10
+
11
+
### Changed
12
+
-`set()`, `update()`, `setOrUpdate()`, `get()`, and `formatValue()` now type their value parameters as `string|int|float|bool|null` instead of `mixed`, matching the actual set of values a `.env` value can hold.
13
+
14
+
### Removed
15
+
- Dropped Laravel 10 support (minimum is now Laravel 11)
16
+
17
+
## v2.0.0 - 2026-01-03
6
18
7
19
### Added
8
20
-`get()` method to read individual .env values with default support
0 commit comments