Skip to content

Commit 1c1467e

Browse files
huangdijialimingxinleo
authored andcommitted
🛠️refactor(testing) improve code quality in Assert and TestResponse
1 parent 0088943 commit 1c1467e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Assert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class Assert extends PHPUnit
2424
/**
2525
* Asserts that an array has a specified subset.
2626
*
27-
* @param array|ArrayAccess $subset
27+
* @param array|ArrayAccess|mixed $subset
2828
* @param array|ArrayAccess $array
2929
*/
3030
public static function assertArraySubset($subset, $array, bool $checkForIdentity = false, string $msg = ''): void

src/Http/TestResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ public function getStatusCode(): int
675675
*/
676676
public function streamedContent()
677677
{
678-
if (! is_null($this->streamedContent)) {
678+
if (! is_null($this->streamedContent)) { /* @phpstan-ignore-line */
679679
return $this->streamedContent;
680680
}
681681

0 commit comments

Comments
 (0)