File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ Here is an example of a simple handler catching the timeout exception
423
423
` ` ` php
424
424
use Bref\C ontext\C ontext;
425
425
use Bref\E vent\H andler;
426
- use Runtime\B ref\T imeout\L ambdaTimeout ;
426
+ use Runtime\B ref\T imeout\L ambdaTimeoutException ;
427
427
428
428
class MySlowHandler implements Handler
429
429
{
Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ public function testLambdaTimeoutsCanBeAnticipated()
242
242
$ this ->givenAnEvent ([]);
243
243
244
244
$ 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 )
247
247
{
248
248
// This 10s sleep should be interrupted
249
249
sleep (10 );
You can’t perform that action at this time.
0 commit comments