Skip to content

Commit d867b12

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: fix amphp/http-client 5 support fix test [Messenger] fix `Envelope::all()` conditional return docblock
2 parents e5fe662 + e128d76 commit d867b12

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/Symfony/Component/HttpClient/Response/AmpResponseV5.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public function __construct(
9999
$onProgress = $options['on_progress'] ?? static function () {};
100100
$onProgress = $this->onProgress = static function () use (&$info, $onProgress, $resolve) {
101101
$info['total_time'] = microtime(true) - $info['start_time'];
102-
$onProgress((int) $info['size_download'], ((int) (1 + $info['download_content_length']) ?: 1) - 1, (array) $info, $resolve);
102+
$info['resolve'] = $resolve;
103+
$onProgress((int) $info['size_download'], ((int) (1 + $info['download_content_length']) ?: 1) - 1, (array) $info);
103104
};
104105

105106
$pause = 0.0;

src/Symfony/Component/Messenger/Bridge/Redis/Tests/Transport/RedisTransportFactoryTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ public static function createTransportProvider(): iterable
6666
['stream' => 'bar', 'delete_after_ack' => true],
6767
];
6868

69-
yield 'redis_sentinel' => [
70-
'redis:?host['.str_replace(' ', ']&host[', getenv('REDIS_SENTINEL_HOSTS')).']',
71-
['sentinel_master' => getenv('REDIS_SENTINEL_SERVICE')],
72-
];
69+
if (false !== getenv('REDIS_SENTINEL_HOSTS') && false !== getenv('REDIS_SENTINEL_SERVICE')) {
70+
yield 'redis_sentinel' => [
71+
'redis:?host['.str_replace(' ', ']&host[', getenv('REDIS_SENTINEL_HOSTS')).']',
72+
['sentinel_master' => getenv('REDIS_SENTINEL_SERVICE')],
73+
];
74+
}
7375
}
7476

7577
private function skipIfRedisUnavailable()

src/Symfony/Component/Messenger/Envelope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function last(string $stampFqcn): ?StampInterface
111111
*
112112
* @return StampInterface[]|StampInterface[][] The stamps for the specified FQCN, or all stamps by their class name
113113
*
114-
* @psalm-return ($stampFqcn is string : array<class-string<StampInterface>, list<StampInterface>> ? list<TStamp>)
114+
* @psalm-return ($stampFqcn is null ? array<class-string<StampInterface>, list<StampInterface>> : list<TStamp>)
115115
*/
116116
public function all(?string $stampFqcn = null): array
117117
{

0 commit comments

Comments
 (0)