Skip to content

Commit

Permalink
Fix: Data provider method shoulds be static
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jun 30, 2023
1 parent 7c70dc4 commit a755189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/DataProvider/Command/NormalizeCommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class NormalizeCommandProvider
/**
* @return \Generator<string, array{0: Test\Util\CommandInvocation}>
*/
public function commandInvocation(): \Generator
public static function commandInvocation(): \Generator
{
foreach (self::commandInvocations() as $commandInvocation) {
yield $commandInvocation->style() => [
Expand All @@ -35,7 +35,7 @@ public function commandInvocation(): \Generator
/**
* @return \Generator<string, array{0: Test\Util\CommandInvocation, 1: string}>
*/
public function commandInvocationAndInvalidIndentSize(): \Generator
public static function commandInvocationAndInvalidIndentSize(): \Generator
{
$faker = self::faker();

Expand Down Expand Up @@ -67,7 +67,7 @@ public function commandInvocationAndInvalidIndentSize(): \Generator
/**
* @return \Generator<string, array{0: Test\Util\CommandInvocation, 1: int, 2: string}>
*/
public function commandInvocationIndentSizeAndIndentStyle(): \Generator
public static function commandInvocationIndentSizeAndIndentStyle(): \Generator
{
/** @var array<int> $indentSizes */
$indentSizes = [
Expand Down

0 comments on commit a755189

Please sign in to comment.