Merge pull request #233 from misaert/feat-authorize-associative-array-for-with

fix: authorize string as key for datasets
This commit is contained in:
Nuno Maduro
2020-11-30 16:42:35 +01:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ final class Datasets
/**
* Resolves the current dataset to an array value.
*
* @param Traversable<int, mixed>|Closure|iterable<int, mixed>|string|null $data
* @param Traversable<int|string, mixed>|Closure|iterable<int|string, mixed>|string|null $data
*
* @return array<string, mixed>
*/

View File

@ -59,7 +59,7 @@ final class TestCaseFactory
/**
* Holds the dataset, if any.
*
* @var Closure|iterable<int, mixed>|string|null
* @var Closure|iterable<int|string, mixed>|string|null
*/
public $dataset;

View File

@ -78,7 +78,7 @@ final class TestCall
* Runs the current test multiple times with
* each item of the given `iterable`.
*
* @param \Closure|iterable<int, mixed>|string $data
* @param \Closure|iterable<int|string, mixed>|string $data
*/
public function with($data): TestCall
{