Skip to content

Commit c0896b4

Browse files
author
Bastian Schwarz
committed
Removed unnecessary string cast
1 parent a9d2583 commit c0896b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/functions/All.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function parse(string $value) : string {
146146
public function parseOnHost(Host $host, string $value) : string {
147147
$finalValue = '';
148148
$this->on($host, function() use (&$finalValue, $value) { $finalValue = $this->parse($value); });
149-
return (string) $finalValue;
149+
return $finalValue;
150150
}
151151

152152
public function run(string $command, ?array $options = [], ?int $timeout = null, ?int $idle_timeout = null, ?string $secret = null, ?array $env = null, ?bool $real_time_output = false, ?bool $no_throw = false) : string {

0 commit comments

Comments
 (0)