Ver código fonte

chore(producer connect): return type

roiwk 1 ano atrás
pai
commit
3fe1ac76ac
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Producer.php

+ 1 - 1
src/Producer.php

@@ -38,7 +38,7 @@ class Producer
     {
     }
 
-    public static function connect(array $rabbitmqConfig, LoggerInterface $logger = null)
+    public static function connect(array $rabbitmqConfig, LoggerInterface $logger = null): self
     {
         return new self($rabbitmqConfig, $logger);
     }