1 | <?php |
||
2 | |||
3 | require_once __DIR__.'/../vendor/autoload.php'; |
||
4 | |||
5 | use League\CommonMark\Configuration\Configuration; |
||
6 | use League\CommonMark\Extension\CommonMark\Node\Inline\Link; |
||
7 | use League\CommonMark\Extension\CommonMark\Renderer\Inline\LinkRenderer; |
||
8 | use League\CommonMark\Tests\Unit\FakeHtmlRenderer; |
||
0 ignored issues
–
show
|
|||
9 | |||
10 | $renderer = new LinkRenderer(); |
||
11 | $renderer->setConfiguration(new Configuration([ |
||
12 | 'allow_unsafe_links' => false, |
||
13 | ])); |
||
14 | |||
15 | $inline = new Link($_GET['url'], $_GET['label'], $_GET['title']); |
||
16 | $fakeRenderer = new FakeHtmlRenderer(); |
||
17 | |||
18 | echo $renderer->render($inline, $fakeRenderer); |
||
19 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths