Skip to content

Commit

Permalink
Make chaining explicit in PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Aug 24, 2020
1 parent 870ee2f commit 0a41ea7
Show file tree
Hide file tree
Showing 3 changed files with 335 additions and 335 deletions.
2 changes: 1 addition & 1 deletion phpdoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ function compileDoc($autoDocLines, $file)
foreach ($autoDocLines as &$editableLine) {
if (is_array($editableLine)) {
if (($editableLine[1] ?? '') === 'self') {
$editableLine[1] = $class;
$editableLine[1] = $class === 'Carbon' ? '$this' : $class;
}

foreach ($editableLine as $column => $text) {
Expand Down
Loading

0 comments on commit 0a41ea7

Please sign in to comment.