Skip to content

Commit 909bdc2

Browse files
authored
Merge pull request #876 from ThomasLandauer/patch-2
Update RoboFile.php: Fix links to extensions' sourcecode
2 parents 7f53f4d + bafadd9 commit 909bdc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

RoboFile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class RoboFile extends \Robo\Tasks
1212
const REPO_BLOB_URL = 'https://github.com/Codeception/Codeception/blob';
1313
const BRANCH_4x = '4.2';
1414
const BRANCH_5x = '5.1';
15+
const BRANCH_MAIN = 'main';
1516

1617
function post()
1718
{
@@ -263,7 +264,7 @@ public function buildDocsExtensions()
263264
->prepend("# Official Extensions\n")
264265
->processClassSignature(function (ReflectionClass $r, $text) {
265266
$name = $r->getShortName();
266-
return "## $name\n\n[See Source](" . self::REPO_BLOB_URL . "/" . self::BRANCH_5x . "/ext/$name.php)";
267+
return "## $name\n\n[See Source](" . self::REPO_BLOB_URL . "/" . self::BRANCH_MAIN . "/ext/$name.php)";
267268
})
268269
->filterMethods(function (ReflectionMethod $r) {
269270
return false;

0 commit comments

Comments
 (0)