Skip to content

Commit eae9b0a

Browse files
Merge branch '6.2' into 6.3
* 6.2: Fix merge Migrate to `static` data providers using `rector/rector`
2 parents 50f5101 + 211e36b commit eae9b0a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Tests/HtmlSanitizerAllTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testSanitizeHead(string $input, string $expected)
3838
$this->assertSame($expected, $this->createSanitizer()->sanitizeFor('head', $input));
3939
}
4040

41-
public function provideSanitizeHead()
41+
public static function provideSanitizeHead()
4242
{
4343
$cases = [
4444
// Scripts
@@ -71,7 +71,7 @@ public function testSanitizeBody(string $input, string $expected)
7171
$this->assertSame($expected, $this->createSanitizer()->sanitize($input));
7272
}
7373

74-
public function provideSanitizeBody()
74+
public static function provideSanitizeBody()
7575
{
7676
$cases = [
7777
// Text

Tests/TextSanitizer/StringSanitizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
class StringSanitizerTest extends TestCase
1818
{
19-
public function provideHtmlLower()
19+
public static function provideHtmlLower()
2020
{
2121
$cases = [
2222
'exampleAttr' => 'exampleattr',
@@ -38,7 +38,7 @@ public function testHtmlLower(string $input, string $expected)
3838
$this->assertSame($expected, StringSanitizer::htmlLower($input));
3939
}
4040

41-
public function provideEncodeHtmlEntites()
41+
public static function provideEncodeHtmlEntites()
4242
{
4343
$cases = [
4444
'' => '',

Tests/TextSanitizer/UrlSanitizerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testSanitize(?string $input, ?array $allowedSchemes, ?array $all
2424
$this->assertSame($expected, UrlSanitizer::sanitize($input, $allowedSchemes, $forceHttps, $allowedHosts, $allowRelative));
2525
}
2626

27-
public function provideSanitize()
27+
public static function provideSanitize()
2828
{
2929
// Simple accepted cases
3030
yield [
@@ -312,7 +312,7 @@ public function testParse(string $url, ?array $expected)
312312
}
313313
}
314314

315-
public function provideParse(): iterable
315+
public static function provideParse(): iterable
316316
{
317317
$urls = [
318318
'' => null,

0 commit comments

Comments
 (0)