Skip to content

Commit 65a9691

Browse files
authored
Update agent deps (#31)
1 parent 4ca430d commit 65a9691

6 files changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/ci-agent.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
- ubuntu-latest
2828
- windows-latest
2929
php:
30-
- { version: '7.2', phpunit: '^8.5.40' }
31-
- { version: '7.3', phpunit: '^9.6.21' }
32-
- { version: '7.4', phpunit: '^9.6.21' }
33-
- { version: '8.0', phpunit: '^9.6.21' }
34-
- { version: '8.1', phpunit: '^9.6.21' }
35-
- { version: '8.2', phpunit: '^9.6.21' }
36-
- { version: '8.3', phpunit: '^9.6.21' }
37-
- { version: '8.4', phpunit: '^9.6.21' }
38-
- { version: '8.5', phpunit: '^9.6.25' }
30+
- { version: '7.2', phpunit: '^8.5.52' }
31+
- { version: '7.3', phpunit: '^9.6.33' }
32+
- { version: '7.4', phpunit: '^9.6.33' }
33+
- { version: '8.0', phpunit: '^9.6.33' }
34+
- { version: '8.1', phpunit: '^9.6.33' }
35+
- { version: '8.2', phpunit: '^9.6.33' }
36+
- { version: '8.3', phpunit: '^9.6.33' }
37+
- { version: '8.4', phpunit: '^9.6.33' }
38+
- { version: '8.5', phpunit: '^9.6.33' }
3939
dependencies:
4040
- lowest
4141
- highest

agent/composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agent/src/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ public function run(): void
111111
}
112112
});
113113

114-
$connection->on('end', function () {});
114+
$connection->on('end', static function () {});
115115

116116
$connection->on('error', function (\Throwable $exception) use (&$connectionBuffer) {
117117
\call_user_func($this->onConnectionError, $exception);
118118

119119
$connectionBuffer = '';
120120
});
121121

122-
$connection->on('close', function () use (&$connectionBuffer) {
122+
$connection->on('close', static function () use (&$connectionBuffer) {
123123
$connectionBuffer = '';
124124
});
125125
});

agent/src/sentry-agent.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function printHelp(): void
135135

136136
$forwarder = new EnvelopeForwarder(
137137
$upstreamTimeout,
138-
function (Psr\Http\Message\ResponseInterface $response) {
138+
static function (Psr\Http\Message\ResponseInterface $response) {
139139
if ($response->getStatusCode() >= 200 && $response->getStatusCode() < 300) {
140140
if ($response->getStatusCode() === 200) {
141141
$responseBody = json_decode($response->getBody()->getContents(), true);
@@ -156,7 +156,7 @@ function (Psr\Http\Message\ResponseInterface $response) {
156156

157157
return null;
158158
},
159-
function (Throwable $exception) {
159+
static function (Throwable $exception) {
160160
Log::error("Envelope send error: {$exception->getMessage()}");
161161

162162
return null;
@@ -166,7 +166,7 @@ function (Throwable $exception) {
166166
$queue = new EnvelopeQueue(
167167
$upstreamConcurrency,
168168
$queueLimit,
169-
function (Envelope $envelope) use ($forwarder) {
169+
static function (Envelope $envelope) use ($forwarder) {
170170
try {
171171
return $forwarder->forward($envelope);
172172
} catch (Exception $e) {
@@ -179,13 +179,13 @@ function (Envelope $envelope) use ($forwarder) {
179179

180180
$server = new Server(
181181
$listenAddress,
182-
function (Throwable $exception) {
182+
static function (Throwable $exception) {
183183
Log::error("Server error: {$exception->getMessage()}");
184184
},
185-
function (Throwable $exception) {
185+
static function (Throwable $exception) {
186186
Log::error("Incoming connection error: {$exception->getMessage()}");
187187
},
188-
function (Envelope $envelope) use ($queue) {
188+
static function (Envelope $envelope) use ($queue) {
189189
Log::debug('Envelope received, queueing forward to Sentry...');
190190

191191
$queue->enqueue($envelope);
@@ -219,7 +219,7 @@ function (Envelope $envelope) use ($queue) {
219219
// Set up graceful shutdown handling
220220
$isShuttingDown = false;
221221

222-
$shutdown = function (int $signal) use ($server, $controlServer, $queue, $drainTimeout, &$isShuttingDown) {
222+
$shutdown = static function (int $signal) use ($server, $controlServer, $queue, $drainTimeout, &$isShuttingDown) {
223223
if ($isShuttingDown) {
224224
return;
225225
}
@@ -238,7 +238,7 @@ function (Envelope $envelope) use ($queue) {
238238
$checkInterval = 0.1;
239239
$elapsed = 0.0;
240240

241-
$drain = function () use (&$drain, $queue, &$elapsed, $drainTimeout, $checkInterval) {
241+
$drain = static function () use (&$drain, $queue, &$elapsed, $drainTimeout, $checkInterval) {
242242
$remaining = count($queue);
243243

244244
if ($remaining === 0) {

bin/sentry-agent

70 Bytes
Binary file not shown.

bin/sentry-agent.sig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
55220A0D691E6FD7973BFB12DAB5AC76C151196E508D84DAE6F9F40974C55E109CC6F07EC729C5F9CD2DBEAEDC5B74251ED810171FD31C59A6BAA97054DFEF6C
1+
317844AD097E56736C035F9331BC5AE8FCC55BBCC4DC58780B1240D00B3ECF4A1F6C5BE89B890585D5BC0F505216C2D480EBFABA97ECE9612D9F53ADCA6DE71A

0 commit comments

Comments
 (0)