-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fd0d8e
commit 3732d8e
Showing
7 changed files
with
49 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ | |
|
||
class MultiTypedArrayPropertyImplementationTest extends TestCase | ||
{ | ||
/** | ||
* @return Generator<int, array{0: MultiTypedArrayPropertiesTester, 1:string, 2:scalar|array|object|null, 3:class-string<\Throwable>, 4:string}, mixed, void> | ||
*/ | ||
public function DataProviderObjectPropertyValueException() : Generator | ||
{ | ||
yield from [ | ||
|
@@ -58,21 +61,26 @@ public function DataProviderObjectPropertyValueException() : Generator | |
]; | ||
} | ||
|
||
/** | ||
* @return Generator<int, array{0:MultiTypedArrayPropertiesTester, 1:string, 2:array<int, mixed>}, mixed, void> | ||
*/ | ||
public function DataProviderObjectPropertyValueNotUniqueAutoDouble() : Generator | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
weirdan
|
||
{ | ||
/** | ||
* @var iterable<array<int, mixed>> | ||
*/ | ||
$sources = $this->DataProviderObjectPropertyValueNotUnique(); | ||
|
||
foreach ($sources as $args) { | ||
foreach ($this->DataProviderObjectPropertyValueNotUnique() as $args) { | ||
static::assertIsArray($args[2] ?? null); | ||
$args[2] = array_merge(array_values((array) $args[2]), array_values((array) $args[2])); | ||
/** | ||
* @var array<int, mixed> | ||
*/ | ||
$args_2 = array_merge(array_values((array) $args[2]), array_values((array) $args[2])); | ||
$args[2] = $args_2; | ||
|
||
yield $args; | ||
} | ||
} | ||
|
||
/** | ||
* @return Generator<int, array{0:MultiTypedArrayPropertiesTester, 1:string, 2:scalar|array|object|null, 3:scalar|array|object|null}, mixed, void> | ||
*/ | ||
public function DataProviderObjectPropertyValueTrimmedStrings() : Generator | ||
{ | ||
yield from [ | ||
|
@@ -146,6 +154,9 @@ public function testAutoTrimmedStrings( | |
static::assertSame($expected, $obj->__get($property)); | ||
} | ||
|
||
/** | ||
* @return Generator<int, array{0:MultiTypedArrayPropertiesTester, 1:string, 2:scalar|array|object|null}, mixed, void> | ||
*/ | ||
protected function DataProviderObjectPropertyValueNotUnique() : Generator | ||
{ | ||
yield from [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@weirdan this is the generator that now triggers MoreSpecificReturnType