Skip to content

Commit 8630211

Browse files
Fix lint
1 parent 38c316f commit 8630211

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[
22
{
33
"message": "Method Levels\\ArrayOffsetAccess\\Foo::test() has parameter $a with no value type specified in iterable type array.",
4-
"line": 7,
4+
"line": 13,
55
"ignorable": true
66
},
77
{
88
"message": "Method Levels\\ArrayOffsetAccess\\Foo::test() has parameter $implicitlyMixed with no type specified.",
9-
"line": 7,
9+
"line": 13,
1010
"ignorable": true
1111
}
1212
]

tests/PHPStan/Levels/data/arrayOffsetAccess.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
namespace Levels\ArrayOffsetAccess;
44

55
class Foo {
6-
/** @return void */
7-
public function test(
8-
array $a,
9-
int|null $intOrNull,
10-
object|int $objectOrInt,
11-
object|null $objectOrNull,
12-
mixed $explicitlyMixed,
13-
$implicitlyMixed,
14-
) {
6+
/**
7+
* @param int|null $intOrNull
8+
* @param object|int $objectOrInt
9+
* @param object|null $objectOrNull
10+
* @param mixed $explicitlyMixed
11+
* @return void
12+
*/
13+
public function test(array $a, $intOrNull, $objectOrInt, $objectOrNull, $explicitlyMixed, $implicitlyMixed)
14+
{
1515
$a[42];
1616
$a[null];
1717
$a[new \DateTimeImmutable()];

0 commit comments

Comments
 (0)