Skip to content

Commit 4cd9854

Browse files
committed
Update phpstan level and fix issue
1 parent eaffa5b commit 4cd9854

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"check": ["@analyze", "@tests", "@tests-spec"],
1717
"tests": "phpunit tests",
18-
"analyze": "phpstan analyse --level 0 src",
18+
"analyze": "phpstan analyse --level max src",
1919
"tests-spec": "phpspec run --no-interaction"
2020
},
2121
"require-dev": {
@@ -32,5 +32,8 @@
3232
"tests"
3333
]
3434
}
35-
}
35+
},
36+
"require": {
37+
"ext-json": "*"
38+
}
3639
}

src/Type/ListType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ListType implements TypeInterface
1313
private static $isNotAnArrayMessage = 'The given value %s is not an array.';
1414

1515
/**
16-
* @var TypeInterface[]
16+
* @var TypeInterface
1717
*/
1818
private $child;
1919

0 commit comments

Comments
 (0)