Skip to content

Support array factories and explicit null-only filter compilation.#45

Merged
gustavofreze merged 1 commit intomainfrom
feature/develop
Apr 21, 2026
Merged

Support array factories and explicit null-only filter compilation.#45
gustavofreze merged 1 commit intomainfrom
feature/develop

Conversation

@gustavofreze
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 21, 2026 11:47
@gustavofreze gustavofreze merged commit ad7d5c6 into main Apr 21, 2026
8 checks passed
@gustavofreze gustavofreze deleted the feature/develop branch April 21, 2026 11:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the tiny-blocks Collection library to better support closure-based factories that return arrays, while tightening up predicate compilation behavior and normalizing project metadata/tooling.

Changes:

  • Allow EagerPipeline::fromClosure() to accept either an array or a Traversable result from the factory.
  • Make Filter predicate compilation explicitly drop only null predicates.
  • Normalize/refresh project metadata and contributor tooling/docs (Composer normalization, README overview, editor config, Claude rules).

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/Internal/Operations/Transforming/Filter.php Filters out only null predicates before compiling the combined predicate.
src/Internal/EagerPipeline.php Handles array-returning factories in fromClosure() to support array factories.
composer.json Updates package description/structure and adds Composer normalization tooling/config.
README.md Refreshes the library overview wording to align with current design (eager/lazy pipelines, generators).
Makefile Runs composer normalize during make configure.
.editorconfig Adds consistent formatting rules across the repo.
.claude/rules/php-library-testing.md Adjusts rule formatting and updates references to renamed rule files.
.claude/rules/php-library-modeling.md Introduces consolidated library modeling rules.
.claude/rules/php-library-documentation.md Adjusts rule formatting and clarifies documentation expectations for examples.
.claude/rules/php-library-code-style.md Updates/clarifies code style rules (including complexity + naming guidance).
.claude/rules/php-domain.md Removes superseded domain rules file.
.claude/CLAUDE.md Updates project description to match this repo being a library package.

Comment thread src/Internal/EagerPipeline.php
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