@@ -192,7 +192,7 @@ private function createClient(): Client
192192
193193 private function parseDsn (string $ dsn ): array
194194 {
195- $ dsn = new Dsn ($ dsn );
195+ $ dsn = Dsn:: parseFirst ($ dsn );
196196
197197 if (false === in_array ($ dsn ->getSchemeProtocol (), ['wamp ' , 'ws ' ], true )) {
198198 throw new \LogicException (sprintf (
@@ -204,10 +204,10 @@ private function parseDsn(string $dsn): array
204204 return array_filter (array_replace ($ dsn ->getQuery (), [
205205 'host ' => $ dsn ->getHost (),
206206 'port ' => $ dsn ->getPort (),
207- 'topic ' => $ dsn ->getQueryParameter ('topic ' ),
208- 'max_retries ' => $ dsn ->getInt ('max_retries ' ),
207+ 'topic ' => $ dsn ->getString ('topic ' ),
208+ 'max_retries ' => $ dsn ->getDecimal ('max_retries ' ),
209209 'initial_retry_delay ' => $ dsn ->getFloat ('initial_retry_delay ' ),
210- 'max_retry_delay ' => $ dsn ->getInt ('max_retry_delay ' ),
210+ 'max_retry_delay ' => $ dsn ->getDecimal ('max_retry_delay ' ),
211211 'retry_delay_growth ' => $ dsn ->getFloat ('retry_delay_growth ' ),
212212 ]), function ($ value ) { return null !== $ value ; });
213213 }
0 commit comments