Skip to content

Commit

Permalink
Merge branch '6.2' into 6.3
Browse files Browse the repository at this point in the history
* 6.2:
  Fix merge
  Migrate to `static` data providers using `rector/rector`
  • Loading branch information
nicolas-grekas committed Feb 14, 2023
2 parents 50f5101 + 211e36b commit eae9b0a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Tests/HtmlSanitizerAllTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function testSanitizeHead(string $input, string $expected)
$this->assertSame($expected, $this->createSanitizer()->sanitizeFor('head', $input));
}

public function provideSanitizeHead()
public static function provideSanitizeHead()
{
$cases = [
// Scripts
Expand Down Expand Up @@ -71,7 +71,7 @@ public function testSanitizeBody(string $input, string $expected)
$this->assertSame($expected, $this->createSanitizer()->sanitize($input));
}

public function provideSanitizeBody()
public static function provideSanitizeBody()
{
$cases = [
// Text
Expand Down
4 changes: 2 additions & 2 deletions Tests/TextSanitizer/StringSanitizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class StringSanitizerTest extends TestCase
{
public function provideHtmlLower()
public static function provideHtmlLower()
{
$cases = [
'exampleAttr' => 'exampleattr',
Expand All @@ -38,7 +38,7 @@ public function testHtmlLower(string $input, string $expected)
$this->assertSame($expected, StringSanitizer::htmlLower($input));
}

public function provideEncodeHtmlEntites()
public static function provideEncodeHtmlEntites()
{
$cases = [
'' => '',
Expand Down
4 changes: 2 additions & 2 deletions Tests/TextSanitizer/UrlSanitizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testSanitize(?string $input, ?array $allowedSchemes, ?array $all
$this->assertSame($expected, UrlSanitizer::sanitize($input, $allowedSchemes, $forceHttps, $allowedHosts, $allowRelative));
}

public function provideSanitize()
public static function provideSanitize()
{
// Simple accepted cases
yield [
Expand Down Expand Up @@ -312,7 +312,7 @@ public function testParse(string $url, ?array $expected)
}
}

public function provideParse(): iterable
public static function provideParse(): iterable
{
$urls = [
'' => null,
Expand Down

0 comments on commit eae9b0a

Please sign in to comment.