Skip to content

Commit 1751a9c

Browse files
committed
bug #740 Update MakerFileLinkFormatter.php (ehrlich-media, weaverryan)
This PR was merged into the 1.0-dev branch. Discussion ---------- Update MakerFileLinkFormatter.php I checked https://github.com/symfony/console/tree/3.4 The Method does not exist in any Version of "symfony/console". Why is it calling here? $outputFormatterStyle->setHref($formatted); Maybe not nesseary? Commits ------- 7324c2e Update src/Util/MakerFileLinkFormatter.php 1ab9467 Update MakerFileLinkFormatter.php
2 parents b2324e0 + 7324c2e commit 1751a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Util/MakerFileLinkFormatter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public function makeLinkedPath(string $absolutePath, string $relativePath): stri
4747
}
4848

4949
$outputFormatterStyle = new OutputFormatterStyle();
50-
$outputFormatterStyle->setHref($formatted);
50+
51+
if (method_exists(OutputFormatterStyle::class, 'setHref')) {
52+
$outputFormatterStyle->setHref($formatted);
53+
}
5154

5255
return $outputFormatterStyle->apply($relativePath);
5356
}

0 commit comments

Comments
 (0)