Skip to content

Commit c1173ef

Browse files
Wrong class name isn't exception but error of who made that class.
1 parent 678dd0e commit c1173ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/protocol/AProtocol.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ protected function read(?int &$signature)
8989
/**
9090
* Returns the bolt protocol version as a string.
9191
* @return string
92-
* @throws Exception
9392
*/
9493
public function getVersion(): string
9594
{
9695
if (preg_match("/V([\d_]+)$/", static::class, $match)) {
9796
return str_replace('_', '.', $match[1]);
9897
}
9998

100-
throw new Exception('Protocol version class name is not valid');
99+
trigger_error('Protocol version class name is not valid', E_USER_ERROR);
101100
}
102101
}

0 commit comments

Comments
 (0)