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
423423` ` ` php
424424use Bref\C ontext\C ontext;
425425use Bref\E vent\H andler;
426- use Runtime\B ref\T imeout\L ambdaTimeout ;
426+ use Runtime\B ref\T imeout\L ambdaTimeoutException ;
427427
428428class MySlowHandler implements Handler
429429{
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments