Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3cc8554

Browse files
Fixes after PHPStan update
1 parent 09e2d3b commit 3cc8554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/Type/PHPUnit/data/assert-function.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function assertInstanceOfWorksWithTemplate($o, $class): void
3838

3939
public function arrayHasNumericKey(array $a, \ArrayAccess $b): void {
4040
assertArrayHasKey(0, $a);
41-
assertType('array&hasOffset(0)', $a);
41+
assertType('non-empty-array&hasOffset(0)', $a);
4242

4343
assertArrayHasKey(0, $b);
4444
assertType('ArrayAccess', $b);
@@ -47,7 +47,7 @@ public function arrayHasNumericKey(array $a, \ArrayAccess $b): void {
4747
public function arrayHasStringKey(array $a, \ArrayAccess $b): void
4848
{
4949
assertArrayHasKey('key', $a);
50-
assertType("array&hasOffset('key')", $a);
50+
assertType("non-empty-array&hasOffset('key')", $a);
5151

5252
assertArrayHasKey('key', $b);
5353
assertType("ArrayAccess", $b);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /