This commit is contained in:
Mohamad Faeez 2025-04-09 14:24:56 +08:00
parent eab09f30df
commit e70d9d7a96

View File

@ -54,7 +54,7 @@ class IoServer {
* @param string $address The address to receive sockets on (0.0.0.0 means receive connections from any)
* @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 ($address == null) $address = '0.0.0.0';