# Bug Report <!-- First, thank you for reporting a bug. That takes time and we appreciate that! --> | 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 <?php class Poll { function Poll() {} } class Pool { function Pool() {} } class Poool { function Poool() {} } ``` ### Responsible rules * `Php4ConstructorRector` ## Expected Behavior <!-- How should Rector change the code? Or should Rector skip it? --> ``` - function Pool() {} + function __construct() {} ```
Bug Report
Php4ConstructorRector doesn't work for classes named
Pool.Minimal PHP Code Causing Issue
See https://getrector.com/demo/c767db67-65f2-47d6-876b-9f53711b748f
Responsible rules
Php4ConstructorRectorExpected Behavior