Skip to content

Commit 660ecf9

Browse files
Fix exception message
1 parent fbd9c29 commit 660ecf9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/TextUI/Output/Printer/DefaultPrinter.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use function fopen;
1818
use function fsockopen;
1919
use function fwrite;
20-
use function sprintf;
2120
use function str_replace;
2221
use function str_starts_with;
2322
use PHPUnit\TextUI\DirectoryDoesNotExistException;
@@ -75,12 +74,7 @@ private function __construct(string $out)
7574
$tmp = explode(':', str_replace('socket://', '', $out));
7675

7776
if (count($tmp) !== 2) {
78-
throw new InvalidSocketException(
79-
sprintf(
80-
'"%s" does not match "socket://hostname:port" format',
81-
$out,
82-
),
83-
);
77+
throw new InvalidSocketException($out);
8478
}
8579

8680
$this->stream = fsockopen($tmp[0], (int) $tmp[1]);

0 commit comments

Comments
 (0)