-
-
Notifications
You must be signed in to change notification settings - Fork 741
Closed
rectorphp/rector-src
#3453Labels
Description
Feature Request
ClassPropertyAssignToConstructorPromotionRector ignores my \Closure property. It works for string or int.
https://getrector.org/demo/f26b947d-4fc8-4ba4-b3dc-6d5b16827919
Thanks again for rector. It makes my life more awesome ❤️
Diff
I would expect something like this:
final class TestKernel
{
- private readonly \Closure $configureContainerBuilder;
public function __construct(
- \Closure $configureContainerBuilder,
+ private readonly \Closure $configureContainerBuilder,
) {
- $this->configureContainerBuilder = $configureContainerBuilder;
}
}Reactions are currently unavailable