yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

Misleading error about relative link in errors.txt #275

Open arogachev opened 2 years ago

arogachev commented 2 years ago

Found during running make download for site, UK language.

Using relative link (https://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) but repoUrl is not set.
samdark commented 2 years ago

Interesting. The link is definitely not relative.

arogachev commented 2 years ago

Yep, need to recheck #256. Not critical though, as I see.

WinterSilence commented 2 years ago

@arogachev api mark all absolute links as relative when $repoUrl is not set:

[12] => Array(
  [line] => 
  [file] => 
  [message] => Using relative link (https://github.com/yiisoft/yii2/blob/2.0.13/framework/UPGRADE.md#upgrade-from-yii-2012) but repoUrl is not set.
    )
[13] => Array(
  [line] => 
  [file] => 
  [message] => Using relative link (https://www.php.net/manual/en/function.hash-algos.php) but repoUrl is not set.
)
[14] => Array(
  [line] => 
  [file] => 
  [message] => Using relative link (https://www.php.net/manual/en/function.hash-algos.php) but repoUrl is not set.
)