BF prevent bool beeing sent
This commit is contained in:
parent
2aa264eb34
commit
76d6b30fdf
|
|
@ -59,6 +59,11 @@ class MockConnection extends Connection implements \Ratchet\ConnectionInterface
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if data is boolean, throw
|
||||||
|
if (is_bool($data)) {
|
||||||
|
throw new \InvalidArgumentException('Data must be a string or an object that can be converted to a string.');
|
||||||
|
}
|
||||||
|
|
||||||
Log::channel('websocket')->info('[MockConnection] Send for pid: ' . getmypid(), [
|
Log::channel('websocket')->info('[MockConnection] Send for pid: ' . getmypid(), [
|
||||||
'data' => $data,
|
'data' => $data,
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue