Skip to content

Commit

Permalink
Change array type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jshayes committed Oct 13, 2024
1 parent cd2eb35 commit 9510d4a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Concerns/Testable.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ trait Testable
/**
* The test's describing, if any.
*
* @var string[]
* @var array<int, string>
*/
public array $__describing = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Factories/TestCaseMethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class TestCaseMethodFactory
/**
* The test's describing, if any.
*
* @var string[]
* @var array<int, string>
*/
public array $describing = [];

Expand Down
4 changes: 2 additions & 2 deletions src/PendingCalls/Concerns/Describable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
}
4 changes: 2 additions & 2 deletions src/PendingCalls/DescribeCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class DescribeCall
/**
* The current describe call.
*
* @var string[]
* @var array<int, string>
*/
private static array $describing = [];

Expand All @@ -40,7 +40,7 @@ public function __construct(
/**
* What is the current describing.
*
* @return string[]
* @return array<int, string>
*/
public static function describing(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Str.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static function isUuid(string $value): bool
/**
* 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
{
Expand Down

0 comments on commit 9510d4a

Please sign in to comment.