Updates
This commit is contained in:
parent
eab09f30df
commit
e70d9d7a96
@ -54,7 +54,7 @@ class IoServer {
|
|||||||
* @param string $address The address to receive sockets on (0.0.0.0 means receive connections from any)
|
* @param string $address The address to receive sockets on (0.0.0.0 means receive connections from any)
|
||||||
* @return IoServer
|
* @return IoServer
|
||||||
*/
|
*/
|
||||||
public static function factory(MessageComponentInterface $component, integer|null $port = null, string|null $address = null) {
|
public static function factory(MessageComponentInterface $component, ?int $port = null, ?string $address = null) {
|
||||||
if ($port == null) $port = 80;
|
if ($port == null) $port = 80;
|
||||||
if ($address == null) $address = '0.0.0.0';
|
if ($address == null) $address = '0.0.0.0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user