File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,10 +112,10 @@ public function processNextEvent($handler): void
112112 \assert ($ context instanceof Context);
113113
114114 if ($ this ->timeout > 0 ) {
115- Timeout::timoutAfter ($ this ->timeout );
115+ Timeout::timeoutAfter ($ this ->timeout );
116116 } elseif ($ this ->timeout === 0 && 0 < $ context ->getRemainingTimeInMillis ()) {
117117 // Throw exception one second before Lambda pulls the plug.
118- Timeout::timoutAfter (max (1 , (int ) floor ($ context ->getRemainingTimeInMillis () / 1000 ) - 1 ));
118+ Timeout::timeoutAfter (max (1 , (int ) floor ($ context ->getRemainingTimeInMillis () / 1000 ) - 1 ));
119119 }
120120
121121 $ this ->ping ();
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public static function enable(): void
2323 }
2424
2525 if ($ timeout > 0 ) {
26- self ::timoutAfter ($ timeout );
26+ self ::timeoutAfter ($ timeout );
2727
2828 return ;
2929 }
@@ -36,7 +36,7 @@ public static function enable(): void
3636 $ deadlineMs = $ context ['deadlineMs ' ];
3737 $ remainingTime = $ deadlineMs - intval (microtime (true ) * 1000 );
3838
39- self ::timoutAfter ((int ) floor ($ remainingTime / 1000 ));
39+ self ::timeoutAfter ((int ) floor ($ remainingTime / 1000 ));
4040
4141 return ;
4242 }
@@ -74,7 +74,7 @@ public static function init(): bool
7474 /**
7575 * Set a timer to throw an exception.
7676 */
77- public static function timoutAfter (int $ seconds ): void
77+ public static function timeoutAfter (int $ seconds ): void
7878 {
7979 self ::init ();
8080 pcntl_alarm ($ seconds );
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function testEnableWithContext()
8585 public function testTimeoutAfter ()
8686 {
8787 $ start = microtime (true );
88- Timeout::timoutAfter (2 );
88+ Timeout::timeoutAfter (2 );
8989 try {
9090 sleep (4 );
9191 $ this ->fail ('We expect a LambdaTimeout before we reach this line ' );
You can’t perform that action at this time.
0 commit comments