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


Result

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