Psalm
Get started
Documentation
Paid support
Plugins
Blog
GitHub
<?php class Test { /** @var list<int> */ public array $list = []; /** @psalm-param list<int> $other */ public function test(array $other): void { foreach ($other as $i => $v) { $this->list[$i] = $v; } } }
Snippet created on March 10 2023 at 22:23 UTC
Settings
Get link