Skip to content

Conversation

@webard
Copy link
Contributor

@webard webard commented Jan 5, 2026

Description

This PR allows developers to use UnitEnum as an parameter of authorizeIndividualRecords().

Visual changes

None

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

Copilot AI review requested due to automatic review settings January 5, 2026 11:17
@github-project-automation github-project-automation bot moved this to Todo in Roadmap Jan 5, 2026
Copy link
Contributor

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 adds support for UnitEnum as a parameter to the authorizeIndividualRecords() method, allowing developers to use pure PHP enums (without backing values) for authorization checks.

Key Changes:

  • Added UnitEnum import to the trait
  • Updated the authorizeIndividualRecords() method signature to accept UnitEnum
  • Modified the condition in getIndividualRecordAuthorizationResponse() to handle UnitEnum instances

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

@danharrin danharrin added the enhancement New feature or request label Jan 6, 2026
@danharrin danharrin added this to the v5.0.0 milestone Jan 6, 2026
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Roadmap Jan 9, 2026
@danharrin danharrin merged commit 302e952 into filamentphp:5.x Jan 9, 2026
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants