Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixed

- **`FLATPACK_LAZY_LIMIT=0` no longer stops the build.** The setting is documented as "parse everything up front", but a limit of zero was read as "every field is over the limit", so every field (the id and title included) was set aside to be parsed later and `flatpack:build` failed with `Unsupported operand types: array + null`. Zero now means what the config file says.

## 1.2.1 (2026-11-11)

### Changed
Expand Down
3 changes: 2 additions & 1 deletion src/Flatpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ final class Flatpack
public static function configure(string $path, int $lazyLimit = 2048): void
{
self::$path = rtrim($path, '/');
self::$lazyLimit = $lazyLimit;
// Nothing is over a limit of zero or less, so it means "never": everything is parsed up front.
self::$lazyLimit = $lazyLimit > 0 ? $lazyLimit : PHP_INT_MAX;
self::$bodies = null;
}

Expand Down
Loading