Skip to content

Commit

Permalink
Do not rely on the "ext-ctype" dev dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rybakit committed May 20, 2020
1 parent 10bad0c commit 81ce2bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Integration/ClientBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function setUri(string $uri) : self
$uri = 'unix://'.$uri;
} elseif (0 === strpos($uri, 'unix/:')) {
$uri = 'unix://'.substr($uri, 6);
} elseif (ctype_digit($uri)) {
} elseif (!preg_match('/[\D]/', $uri)) {
$uri = 'tcp://127.0.0.1:'.$uri;
} elseif (0 !== strpos($uri, 'tcp://') && (0 !== strpos($uri, 'unix://'))) {
$uri = 'tcp://'.$uri;
Expand Down

0 comments on commit 81ce2bb

Please sign in to comment.