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