Skip to content

Created ClosureFromCallableToFirstClassCallableRector rule, fixture… #7071

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devnix
Copy link

@devnix devnix commented Jul 17, 2025

…s, and implementation for function_callable_string.php.inc fixture

…s, and implementation for `function_callable_string.php.inc` fixture
@devnix devnix force-pushed the ClosureFromCallableToFirstClassCallableRector branch from ee6d875 to 0a4cbea Compare July 18, 2025 07:48
@@ -23,6 +24,7 @@
SpatieEnumClassToEnumRector::class,
SpatieEnumMethodCallToEnumConstRector::class,
NullToStrictStringFuncCallArgRector::class,
ClosureFromCallableToFirstClassCallableRector::class,
Copy link
Member

Choose a reason for hiding this comment

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

I prefer to use CodingStyle namespace for this, and no need to register to config set, as it mostly by preference, use of first class callable mostly cause error on unit tests and we skip that over time on projects

@@ -0,0 +1,13 @@
<?php

Copy link
Member

Choose a reason for hiding this comment

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

Add namespace in the fixture when possible like other rules tests, except on purpose

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.

3 participants