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 $v) { $this->list[count($this->list)] = $v; } } }
Snippet created on March 10 2023 at 22:45 UTC
Settings
Get link