Psalm
Get started
Documentation
Plugins
Articles
GitHub
<?php declare(strict_types=1); /** * @psalm-return array<int, string> */ function produce(): array { return [1 => '2']; } $array = produce(); if (isset($array[0])) { echo $array[0] + 1; }
Snippet created on December 14 2021 at 08:45 UTC
Settings
Get link