mirror of
https://github.com/pestphp/pest.git
synced 2026-03-05 23:37:22 +01:00
Change array type hint
This commit is contained in:
@ -62,7 +62,7 @@ trait Testable
|
||||
/**
|
||||
* The test's describing, if any.
|
||||
*
|
||||
* @var string[]
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public array $__describing = [];
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ final class TestCaseMethodFactory
|
||||
/**
|
||||
* The test's describing, if any.
|
||||
*
|
||||
* @var string[]
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public array $describing = [];
|
||||
|
||||
|
||||
@ -12,14 +12,14 @@ trait Describable
|
||||
/**
|
||||
* Note: this is property is not used; however, it gets added automatically by rector php.
|
||||
*
|
||||
* @var string[]
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public array $__describing;
|
||||
|
||||
/**
|
||||
* The describing of the test case.
|
||||
*
|
||||
* @var string[]
|
||||
* @var array<int, string>
|
||||
*/
|
||||
public array $describing = [];
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ final class DescribeCall
|
||||
/**
|
||||
* The current describe call.
|
||||
*
|
||||
* @var string[]
|
||||
* @var array<int, string>
|
||||
*/
|
||||
private static array $describing = [];
|
||||
|
||||
@ -40,7 +40,7 @@ final class DescribeCall
|
||||
/**
|
||||
* What is the current describing.
|
||||
*
|
||||
* @return string[]
|
||||
* @return array<int, string>
|
||||
*/
|
||||
public static function describing(): array
|
||||
{
|
||||
|
||||
@ -104,7 +104,7 @@ final class Str
|
||||
/**
|
||||
* Creates a describe block as `$describeDescription` → `$testDescription` format.
|
||||
*
|
||||
* @param string[] $describeDescriptions
|
||||
* @param array<int, string> $describeDescriptions
|
||||
*/
|
||||
public static function describe(array $describeDescriptions, string $testDescription): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user