[core] a load more type hints, and fix bugs revealed by type hints

This commit is contained in:
Shish
2024-01-20 14:10:59 +00:00
parent 373be4e05c
commit b60c3fe362
158 changed files with 1532 additions and 616 deletions

View File

@ -101,13 +101,13 @@ class BBCodeTest extends ShimmiePHPUnitTestCase
);
}
private function filter($in): string
private function filter(string $in): string
{
$bb = new BBCode();
return $bb->_format($in);
}
private function strip($in): string
private function strip(string $in): string
{
$bb = new BBCode();
return $bb->strip($in);