Try these: PHP 7.4 Typed Properties create_function() Early Return Null Coalescing


Result

Used Rector version: No version set (parsed as 1.0.0)@

 
 final class CompleteMe
 {
-    private $eventDispatcher;
+    private EventDispatcher $eventDispatcher;
 	
     public function __construct(EventDispatcher $eventDispatcher)
     {