Skip to content

Commit

Permalink
squash! Improve PHPUnit assertions
Browse files Browse the repository at this point in the history
Make PHPUnit assertion of an array-key of an actual array redundant
condition free on evaluation and reconciliation of an actual array to
the array type in the psalm-assertion.
  • Loading branch information
ktomk committed Aug 7, 2020
1 parent ac336a8 commit 1e3e3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stubs/Assert_75.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ abstract class Assert
*
* @param int|string $key
* @param mixed $array
* @psalm-assert array $array
* @psalm-assert array{} $array
* @return void
*/
public static function assertArrayHasKey($key, $array, string $message = '') {}
Expand Down

0 comments on commit 1e3e3a1

Please sign in to comment.