Skip to content

Commit

Permalink
Import Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 4, 2024
1 parent 275aa4e commit 12214cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/php/websocket/protocol/Messages.class.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace websocket\protocol;

use Throwable as Any;
use lang\Throwable;
use util\Bytes;

Expand Down Expand Up @@ -67,8 +68,8 @@ public function next($socket, $i) {
}
} catch (Throwable $t) {
$this->logging->log($i, Opcodes::nameOf($opcode), $t);
} catch (\Throwable $t) {
$this->logging->log($i, Opcodes::nameOf($opcode), Throwable::wrap($t));
} catch (Any $e) {
$this->logging->log($i, Opcodes::nameOf($opcode), Throwable::wrap($e));
}
}
}
Expand Down

0 comments on commit 12214cf

Please sign in to comment.