We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678dd0e commit c1173efCopy full SHA for c1173ef
src/protocol/AProtocol.php
@@ -89,14 +89,13 @@ protected function read(?int &$signature)
89
/**
90
* Returns the bolt protocol version as a string.
91
* @return string
92
- * @throws Exception
93
*/
94
public function getVersion(): string
95
{
96
if (preg_match("/V([\d_]+)$/", static::class, $match)) {
97
return str_replace('_', '.', $match[1]);
98
}
99
100
- throw new Exception('Protocol version class name is not valid');
+ trigger_error('Protocol version class name is not valid', E_USER_ERROR);
101
102
0 commit comments