Skip to content

Commit a6fc84f

Browse files
committed
Update RunCommandTrait.php
1 parent 5c12551 commit a6fc84f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Dashboards/Memcached/MemcacheCompatibility/RunCommandTrait.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ trait RunCommandTrait {
2525
public function runCommand(string $command): ?array {
2626
$data = [];
2727

28+
$this->server['port'] ??= 11211;
29+
2830
$fp = @fsockopen($this->server['host'], (int) $this->server['port'], $error_code, $error_message, 3);
2931

3032
if ($fp === false) {

0 commit comments

Comments
 (0)