mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
Make data providers static
From PHPUnit 10, all data providers need to be static. This commit will make migrating from version 9 to 10 a bit easier. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
ebcf247187
commit
2ee7509c2e
151 changed files with 891 additions and 891 deletions
|
|
@ -28,7 +28,7 @@ final class ArrayValTest extends RuleTestCase
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function providerForValidInput(): array
|
||||
public static function providerForValidInput(): array
|
||||
{
|
||||
$rule = new ArrayVal();
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ final class ArrayValTest extends RuleTestCase
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function providerForInvalidInput(): array
|
||||
public static function providerForInvalidInput(): array
|
||||
{
|
||||
$rule = new ArrayVal();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue