Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -17,7 +17,7 @@ use PHPUnit\Framework\TestCase;
*/
class StringHelperTest extends TestCase
{
public function testEnsureMaxLength()
public function testEnsureMaxLength(): void
{
self::assertNull(StringHelper::ensureMaxLength(null, 10));
self::assertEquals('', StringHelper::ensureMaxLength('', 10));
@@ -51,7 +51,7 @@ class StringHelperTest extends TestCase
/**
* @dataProvider getDdeAttackStrings
*/
public function testSanitizeDde(string $input)
public function testSanitizeDde(string $input): void
{
self::assertEquals("' " . $input, StringHelper::sanitizeDDE($input));
}
@@ -65,7 +65,7 @@ class StringHelperTest extends TestCase
/**
* @dataProvider getNonDdeAttackStrings
*/
public function testSanitizeDdeWithCorrectStrings(string $input)
public function testSanitizeDdeWithCorrectStrings(string $input): void
{
self::assertEquals($input, StringHelper::sanitizeDDE($input));
}