Change array type hint

This commit is contained in:
jshayes
2024-10-13 09:54:19 -04:00
parent cd2eb3504b
commit 9510d4a2f9
5 changed files with 7 additions and 7 deletions

View File

@ -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 = [];

View File

@ -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 = [];

View File

@ -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 = [];
} }

View File

@ -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
{ {

View File

@ -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
{ {