Skip to content

[0.x] rename anonymous class helper methods to avoid Pint renaming#257

Open
jackbayliss wants to merge 2 commits intolaravel:0.xfrom
jackbayliss:pint-fix
Open

[0.x] rename anonymous class helper methods to avoid Pint renaming#257
jackbayliss wants to merge 2 commits intolaravel:0.xfrom
jackbayliss:pint-fix

Conversation

@jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Mar 10, 2026

Sorry, another PR!

Pint's php_unit_method_casing rule was renaming one of the testInvokeTool anonymous class helper methods to test_invoke_tool, causing the test to fail when running locally. I assumed it was a typo in my previous PR, but its actually pint :D

This PR renames all three methods to callInvokeTool to prevent Pint from touching them which just prevents confusion for anyone testing unit tests locally.

TLDR - stops pint doing:

-            public function testInvokeTool(Tool $tool, array $arguments): string
+            public function test_invoke_tool(Tool $tool, array $arguments): string

@jackbayliss jackbayliss marked this pull request as ready for review March 10, 2026 22:14
@delabon delabon mentioned this pull request Mar 11, 2026
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.

1 participant