Skip to content

Commit

Permalink
CS: minor tweaks to comply with YoastCS 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Dec 14, 2023
1 parent 954d6a2 commit 9467cb4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions tests/Polyfills/AssertIgnoringLineEndingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function testAssertStringEqualsStringIgnoringLineEndings( $expected, $act
/**
* Data provider.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataAllLineEndingVariations() {
return [
Expand All @@ -116,7 +116,7 @@ public static function dataAllLineEndingVariations() {
/**
* Data provider.
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataAssertStringEqualsStringIgnoringLineEndingsTypeVariations() {
return [
Expand Down Expand Up @@ -156,7 +156,7 @@ public function testAssertStringEqualsStringIgnoringLineEndingsFails( $expected,
/**
* Data provider.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataAssertStringEqualsStringIgnoringLineEndingsFails() {
return [
Expand Down Expand Up @@ -265,7 +265,7 @@ public function testAssertStringContainsStringIgnoringLineEndings( $needle, $hay
/**
* Data provider.
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataAssertStringContainsStringIgnoringLineEndings() {
return [
Expand Down Expand Up @@ -333,7 +333,7 @@ public function testAssertStringContainsStringIgnoringLineEndingsFails( $needle,
/**
* Data provider.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataAssertStringContainsStringIgnoringLineEndingsFails() {
return [
Expand All @@ -348,7 +348,7 @@ public static function dataAssertStringContainsStringIgnoringLineEndingsFails()
/**
* Data provider.
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataThrowsTypeErrorOnInvalidType() {
return [
Expand Down
10 changes: 5 additions & 5 deletions tests/Polyfills/AssertIsListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function testAssertIsListFailsOnInvalidInputType( $actual, $type ) {
/**
* Data provider.
*
* @return array
* @return array<string, array<string, mixed>>
*/
public static function dataAssertIsListFailsOnInvalidInputType() {
// Only testing closed resource to not leak an open resource.
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function dataAssertIsListFailsOnInvalidInputType() {
*
* @dataProvider dataAssertIsListPass
*
* @param array $actual The value to test.
* @param array<mixed> $actual The value to test.
*
* @return void
*/
Expand All @@ -94,7 +94,7 @@ public function testAssertIsListPass( $actual ) {
/**
* Data provider.
*
* @return array
* @return array<string, array<array<mixed>>>
*/
public static function dataAssertIsListPass() {
return [
Expand Down Expand Up @@ -122,7 +122,7 @@ public static function dataAssertIsListPass() {
*
* @dataProvider dataAssertIsListFail
*
* @param array $actual The value to test.
* @param array<int|string, int|string> $actual The value to test.
*
* @return void
*/
Expand All @@ -136,7 +136,7 @@ public function testAssertIsListFail( $actual ) {
/**
* Data provider.
*
* @return array
* @return array<string, array<array<int|string, int|string>>>
*/
public static function dataAssertIsListFail() {
return [
Expand Down

0 comments on commit 9467cb4

Please sign in to comment.