Skip to content

Commit 289bdda

Browse files
huangdijialimingxinleo
authored andcommitted
⚙️chore(testing) update Assert method signature for readability
1 parent 1c1467e commit 289bdda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Assert.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ abstract class Assert extends PHPUnit
2424
/**
2525
* Asserts that an array has a specified subset.
2626
*
27-
* @param array|ArrayAccess|mixed $subset
27+
* @param array|ArrayAccess $subset
2828
* @param array|ArrayAccess $array
2929
*/
3030
public static function assertArraySubset($subset, $array, bool $checkForIdentity = false, string $msg = ''): void
3131
{
32-
if (! (is_array($subset) || $subset instanceof ArrayAccess)) {
32+
if (! (is_array($subset) || $subset instanceof ArrayAccess)) { /* @phpstan-ignore-line */
3333
throw InvalidArgumentException::create(1, 'array or ArrayAccess');
3434
}
3535

36-
if (! (is_array($array) || $array instanceof ArrayAccess)) {
36+
if (! (is_array($array) || $array instanceof ArrayAccess)) { /* @phpstan-ignore-line */
3737
throw InvalidArgumentException::create(2, 'array or ArrayAccess');
3838
}
3939

0 commit comments

Comments
 (0)