diff --git a/Transport/Connection.php b/Transport/Connection.php index 2571120..871881a 100644 --- a/Transport/Connection.php +++ b/Transport/Connection.php @@ -131,7 +131,7 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option 'buffer_size' => (int) $options['buffer_size'], 'wait_time' => (int) $options['wait_time'], 'poll_timeout' => $options['poll_timeout'], - 'visibility_timeout' => $options['visibility_timeout'], + 'visibility_timeout' => null !== $options['visibility_timeout'] ? (int) $options['visibility_timeout'] : null, 'auto_setup' => filter_var($options['auto_setup'], \FILTER_VALIDATE_BOOL), 'queue_name' => (string) $options['queue_name'], ];