Skip to content

update NamerInterface signature - #1561

Merged
garak merged 1 commit into
dustin10:3.xfrom
garak:namerinterface
Nov 10, 2025
Merged

update NamerInterface signature#1561
garak merged 1 commit into
dustin10:3.xfrom
garak:namerinterface

Conversation

@garak

@garak garak commented Nov 8, 2025

Copy link
Copy Markdown
Collaborator

Fix #1546

@garak
garak requested a review from Copilot November 8, 2025 16:45

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the type hints in two naming interfaces to accept both objects and arrays for the $object parameter. The changes align the interface signatures with their implementations, which already support both types.

  • Updated PHPStan templates to object|array in both interfaces
  • Updated method signature in NamerInterface::name() to accept object|array
  • Removed deprecation notice from docblock in NamerInterface

Reviewed Changes

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

File Description
src/Naming/NamerInterface.php Updated name() method signature and PHPStan template to accept `object
src/Naming/DirectoryNamerInterface.php Updated PHPStan template to accept `object

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

@@ -9,7 +9,7 @@
*
* @author Kevin bond <kevinbond@gmail.com>

Copilot AI Nov 8, 2025

Copy link

Choose a reason for hiding this comment

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

Author name 'Kevin bond' should be capitalized as 'Kevin Bond'.

Suggested change
* @author Kevin bond <kevinbond@gmail.com>
* @author Kevin Bond <kevinbond@gmail.com>

Copilot uses AI. Check for mistakes.
@garak
garak merged commit 6d41422 into dustin10:3.x Nov 10, 2025
9 checks passed
@garak
garak deleted the namerinterface branch November 10, 2025 13:35
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