drop php7.3 support, make use of 7.4 features

This commit is contained in:
Shish
2021-03-14 23:43:50 +00:00
parent c558ee3bdb
commit 77f7121e26
296 changed files with 1571 additions and 2039 deletions

View File

@ -4,14 +4,14 @@ class BBCodeInfo extends ExtensionInfo
{
public const KEY = "bbcode";
public $key = self::KEY;
public $name = "BBCode";
public $url = self::SHIMMIE_URL;
public $authors = self::SHISH_AUTHOR;
public $license = self::LICENSE_GPLV2;
public $core = true;
public $description = "Turns BBCode into HTML";
public $documentation =
public string $key = self::KEY;
public string $name = "BBCode";
public string $url = self::SHIMMIE_URL;
public array $authors = self::SHISH_AUTHOR;
public string $license = self::LICENSE_GPLV2;
public bool $core = true;
public string $description = "Turns BBCode into HTML";
public ?string $documentation =
" Basic formatting tags:
<ul>
<li>[b]<b>bold</b>[/b]

View File

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