Run Rector on your code to see what it can do for you:

 
 class Poll
 {
-    function Poll() {}
+    function __construct() {}
 }
 
 class Pool
 
 class Poool
 {
-    function Poool() {}
+    function __construct() {}
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 89d191 - released at 2026-05-16 01:47