We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0d6a6 commit c37eb1cCopy full SHA for c37eb1c
tests/PHPStan/Analyser/nsrt/composer-array-bug.php
@@ -16,7 +16,10 @@ class Foo
16
public function doFoo(): void
17
{
18
if (!empty($this->config['authors'])) {
19
+ assertType("mixed~(0|0.0|''|'0'|array{}|false|null)", $this->config['authors']);
20
foreach ($this->config['authors'] as $key => $author) {
21
+ assertType("mixed~(0|0.0|false|null)", $this->config['authors']);
22
+
23
if (!is_array($author)) {
24
$this->errors[] = 'authors.'.$key.' : should be an array, '.gettype($author).' given';
25
assertType("mixed~(0|0.0|false|null)", $this->config['authors']);
0 commit comments