Skip to content

Commit c37eb1c

Browse files
committed
assert more
1 parent ab0d6a6 commit c37eb1c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/PHPStan/Analyser/nsrt/composer-array-bug.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ class Foo
1616
public function doFoo(): void
1717
{
1818
if (!empty($this->config['authors'])) {
19+
assertType("mixed~(0|0.0|''|'0'|array{}|false|null)", $this->config['authors']);
1920
foreach ($this->config['authors'] as $key => $author) {
21+
assertType("mixed~(0|0.0|false|null)", $this->config['authors']);
22+
2023
if (!is_array($author)) {
2124
$this->errors[] = 'authors.'.$key.' : should be an array, '.gettype($author).' given';
2225
assertType("mixed~(0|0.0|false|null)", $this->config['authors']);

0 commit comments

Comments
 (0)