Skip to content

Commit 779a1a0

Browse files
committed
cs
1 parent 036b0fd commit 779a1a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bref/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ Here is an example of a simple handler catching the timeout exception
423423
```php
424424
use Bref\Context\Context;
425425
use Bref\Event\Handler;
426-
use Runtime\Bref\Timeout\LambdaTimeout;
426+
use Runtime\Bref\Timeout\LambdaTimeoutException;
427427
428428
class MySlowHandler implements Handler
429429
{

src/bref/tests/Lambda/LambdaClientTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ public function testLambdaTimeoutsCanBeAnticipated()
242242
$this->givenAnEvent([]);
243243

244244
$start = microtime(true);
245-
$this->lambda->processNextEvent(new class implements Handler {
246-
public function handle ($event, Context $context)
245+
$this->lambda->processNextEvent(new class() implements Handler {
246+
public function handle($event, Context $context)
247247
{
248248
// This 10s sleep should be interrupted
249249
sleep(10);

0 commit comments

Comments
 (0)