Skip to content

Conversation

@priyadi
Copy link
Member

@priyadi priyadi commented Dec 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 10, 2025 03:45
Copy link

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

This PR fixes compatibility with Doctrine Collections 2.4 by adding the third parameter (true) to ClosureExpressionVisitor::getObjectFieldValue() method calls. This parameter controls whether the method should return null for non-existent properties instead of throwing an exception, allowing the calling code to provide more specific and helpful error messages through custom exception handling.

  • Adds the nullable parameter to allow graceful handling of missing properties
  • Enables better error messaging through application-specific exceptions
  • Ensures compatibility with Doctrine Collections 2.4 while maintaining backward compatibility with 2.2+

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/rekapager-doctrine-collections-adapter/src/Internal/SelectableKeysetItem.php Updated getObjectFieldValue() call to allow nullable return, enabling custom NullBoundaryValueException with detailed error context
packages/rekapager-adapter-common/src/IndexResolver.php Updated getObjectFieldValue() call to allow nullable return, improving error handling within the existing try-catch block

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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