Skip to content

Commit

Permalink
Add PHP types to private methods and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj authored and nicolas-grekas committed Feb 13, 2023
1 parent 129d0c0 commit 20963cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dumper/HtmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private function getSourceLink(string $file, int $line)
}
}

function esc(string $str)
function esc(string $str): string
{
return htmlspecialchars($str, \ENT_QUOTES, 'UTF-8');
}

0 comments on commit 20963cf

Please sign in to comment.