-
-
Notifications
You must be signed in to change notification settings - Fork 737
Closed
rectorphp/rector-src
#6887Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | last dev-main |
| Installed as | composer dependency |
Php4ConstructorRector doesn't work for classes named Pool.
Minimal PHP Code Causing Issue
See https://getrector.com/demo/c767db67-65f2-47d6-876b-9f53711b748f
<?php
class Poll
{
function Poll() {}
}
class Pool
{
function Pool() {}
}
class Poool
{
function Poool() {}
}Responsible rules
Php4ConstructorRector
Expected Behavior
- function Pool() {}
+ function __construct() {}